Function at 0x4647d0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x50
push eax
call fcn.00552f10
add esp, 4
test eax, eax
je 0x464c79
mov eax, dword [0x5e8268]
test eax, eax
je 0x4647fa
push eax
call fcn.00535980
add esp, 4
push ebx
push ebp
push edi
push 0x7d2
call fcn.005358b0
mov edi, eax
mov ecx, 0x1f4
xor eax, eax
mov dword [0x5e8268], edi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x5e826c]
add esp, 4
test eax, eax
je 0x46482f
push eax
call fcn.00535980
add esp, 4
push 0x7d2
call fcn.005358b0
mov edi, eax
mov ecx, 0x1f4
xor eax, eax
mov dword [0x5e826c], edi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x5e8264]
add esp, 4
test eax, eax
je 0x464861
push eax
call fcn.00535980
add esp, 4
push 0x6e4
call fcn.005358b0
mov ebp, eax
mov ecx, 0x1b9
xor eax, eax
mov edi, ebp
mov dword [0x5e8264], ebp
push 1
rep stosd dword es:[edi], eax
push str.history
call fcn.00552c60
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x464c71
push esi
push 0
push ebx
push 1
push str.code
call fcn.00466a60
add esp, 0x10
test eax, eax
je 0x464c58
lea ecx, [eax*8]
push 0
sub ecx, eax
push ebx
push 1
push str.type
lea ecx, [ecx + ecx*2]
lea esi, [ebp + ecx*4 - 0x54]
mov word [esi], ax
call fcn.00466a60
add esp, 0x10
mov word [esi + 2], ax
test ax, ax
jne 0x4648e8
mov word [esi], ax
jmp 0x464c58
push 0
push ebx
push 1
push str.enter_map
call fcn.00466a60
push 0
push ebx
push 1
push str.battle_map
mov word [esi + 4], ax
call fcn.00466a60
push 0
push ebx
push 1
push str.cost
mov word [esi + 6], ax
call fcn.00466a60
push 0
push ebx
push 1
push str.honor
mov dword [esi + 8], eax
call fcn.00466a60
add esp, 0x40
mov word [esi + 0xc], ax
push 0
push ebx
push 1
push str.level_min
call fcn.00466a60
push 0
push ebx
push 1
push str.level_max
mov word [esi + 0xe], ax
call fcn.00466a60
push 0
push ebx
push 1
push str.limit_player
mov word [esi + 0x10], ax
call fcn.00466a60
push 0
push ebx
push 1
push str.left_country
mov word [esi + 0x12], ax
call fcn.00466a60
add esp, 0x40
mov dword [esi + 0x14], eax
push 0x5eddd4
push ebx
push 1
push str.left_color
call fcn.00552d20
add esp, 0x10
test eax, eax
je 0x4649e9
lea edx, [esp + 0x10]
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x10]
push 3
push edx
rep stosd dword es:[edi], eax
push 0x5eddd4
call fcn.00466c40
add esp, 0xc
cmp eax, 3
jne 0x4649e9
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x14]
mov edx, dword [esp + 0x18]
and al, 0xf8
shl eax, 5
and ecx, 0xfc
sar edx, 3
add eax, ecx
and edx, 0x1f
lea eax, [edx + eax*8]
mov word [esi + 0x18], ax
push 0x5eddd4
push ebx
push 1
push str.left_reborn_area
call fcn.00552d20
add esp, 0x10
test eax, eax
je 0x464a44
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x10]
push 4
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push 0x5eddd4
call fcn.00466c40
add esp, 0xc
cmp eax, 4
jne 0x464a44
mov edx, dword [esp + 0x10]
mov dword [esi + 0x1a], edx
mov eax, dword [esp + 0x14]
mov dword [esi + 0x1e], eax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x22], ecx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x26], edx
push 0
push ebx
push 1
push str.right_country
call fcn.00466a60
push 0x5eddd4
push ebx
push 1
push str.right_color
mov dword [esi + 0x2a], eax
call fcn.00552d20
add esp, 0x20
test eax, eax
je 0x464abc
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x10]
push 3
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push 0x5eddd4
call fcn.00466c40
add esp, 0xc
cmp eax, 3
jne 0x464abc
mov ecx, dword [esp + 0x10]
mov dl, byte [esp + 0x14]
mov eax, dword [esp + 0x18]
and ecx, 0xfffffff8
shl ecx, 5
and edx, 0xfc
sar eax, 3
add ecx, edx
and eax, 0x1f
lea ecx, [eax + ecx*8]
mov word [esi + 0x2e], cx
push 0x5eddd4
push ebx
push 1
push str.right_reborn_area
call fcn.00552d20
add esp, 0x10
test eax, eax
je 0x464b17
lea edx, [esp + 0x10]
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x10]
push 4
push edx
rep stosd dword es:[edi], eax
push 0x5eddd4
call fcn.00466c40
add esp, 0xc
cmp eax, 4
jne 0x464b17
mov eax, dword [esp + 0x10]
mov dword [esi + 0x30], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x34], ecx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x38], edx
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x3c], eax
push 0
push ebx
push 1
push str.cmd_start
call fcn.00466a60
push 0
push ebx
push 1
push str.cmd_loop
mov word [esi + 0x40], ax
call fcn.00466a60
push 0
push ebx
push 1
push str.reward_min_player
mov word [esi + 0x42], ax
call fcn.00466a60
push 0
push ebx
push 1
push str.reward_min_score
mov word [esi + 0x44], ax
call fcn.00466a60
add esp, 0x40
mov word [esi + 0x46], ax
push 0x5eddd4
push ebx
push 1
push str.reward_item
call fcn.00552d20
add esp, 0x10
test eax, eax
je 0x464bb7
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x10]
push 2
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push 0x5eddd4
call fcn.00466c40
add esp, 0xc
cmp eax, 2
jne 0x464bb7
mov dx, word [esp + 0x10]
mov word [esi + 0x48], dx
mov ax, word [esp + 0x14]
mov word [esi + 0x4a], ax
push 0
push ebx
push 1
push str.reward_honor
call fcn.00466a60
push 0
push ebx
push 1
push str.reward_win_rscore
mov word [esi + 0x4c], ax
call fcn.00466a60
push 0
push ebx
push 1
push str.reward_lose_rscore
mov word [esi + 0x4e], ax
call fcn.00466a60
push 0
push ebx
push 1
push str.reward_kill_player
mov word [esi + 0x50], ax
call fcn.00466a60
mov dx, word [esi]
xor ecx, ecx
mov cx, word [esi + 6]
mov word [esi + 0x52], ax
mov eax, dword [0x5e8268]
add esp, 0x40
mov word [eax + ecx*2], dx
mov eax, dword [0x5e826c]
mov dx, word [esi + 6]
xor ecx, ecx
mov cx, word [esi + 4]
mov word [eax + ecx*2], dx
xor ecx, ecx
mov cx, word [esi + 6]
push ecx
call fcn.0046db50
add esp, 4
test eax, eax
je 0x464c58
xor ecx, ecx
mov cx, word [esi + 2]
cmp ecx, 4
mov dword [eax + 0x58], ecx
jl 0x464c51
cmp ecx, 5
jle 0x464c58
mov dword [eax + 0x44], 5
push ebx
push str.history
call fcn.00552cc0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x464898
pop esi
call fcn.00553100
pop edi
pop ebp
pop ebx
add esp, 0x50
ret