Function at 0x418420
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5c43dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10c], eax
movzx eax, word [eax + 0x2ea]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
test ax, ax
je 0x4188ab
push edi
push eax
call fcn.0047ed90
mov edi, eax
add esp, 4
mov dword [ebp - 0x100], edi
test edi, edi
je 0x4188aa
call fcn.00488a90
movzx ecx, word [ebx + 0x52a]
push ecx
call fcn.00488ae0
movzx edx, word [ebx + 0x5a4]
push edx
call fcn.00488ae0
movzx eax, word [ebx + 0x61e]
push eax
call fcn.00488ae0
movzx ecx, word [ebx + 0x698]
push ecx
call fcn.00488ae0
movzx edx, word [ebx + 0x712]
push edx
call fcn.00488ae0
movzx eax, word [ebx + 0x78c]
push eax
call fcn.00488ae0
movzx ecx, word [ebx + 0x806]
push ecx
call fcn.00488ae0
movzx edx, word [ebx + 0x880]
push edx
call fcn.00488ae0
movzx eax, word [ebx + 0x8fa]
push eax
call fcn.00488ae0
movzx ecx, word [ebx + 0x974]
push ecx
call fcn.00488ae0
movzx edx, word [ebx + 0x9ee]
push edx
call fcn.00488ae0
add esp, 0x2c
cmp byte [esi], 0
je 0x418527
lea edi, [esi - 1]
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x418510
mov ax, word [0x5a47f0]
mov word [edi], ax
mov edi, dword [ebp - 0x100]
mov dword [ebp - 0xf8], 0
call fcn.00488a80
mov dword [ebp - 0x104], eax
test eax, eax
je 0x41867a
xor ecx, ecx
test eax, eax
jle 0x41867a
mov edi, edi
lea eax, [ecx + 1]
lea ecx, [ebp - 0xfc]
push ecx
lea edx, [ebp - 0x108]
push edx
push eax
mov dword [ebp - 0x110], eax
call fcn.00488ba0
mov eax, dword [ebp - 0x10c]
movzx ecx, word [eax + 0x2ea]
add esp, 0xc
cmp dword [ebp - 0x108], ecx
jne 0x418668
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xf8], eax
cmp eax, 2
jl 0x418668
movzx ecx, word [edi + 6]
cmp eax, ecx
jle 0x4185b4
mov eax, ecx
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], ecx
test byte [ebp + 8], 1
je 0x418668
cmp eax, 2
jl 0x418668
movzx ecx, word [edi + eax*2 + 0x1a]
test ecx, ecx
je 0x4185e9
push ecx
call fcn.0047faa0
add esp, 4
mov dword [ebp - 0x114], eax
test eax, eax
jne 0x4185f7
mov eax, dword [ebp - 0xfc]
dec eax
mov dword [ebp - 0xfc], eax
cmp eax, 2
jge 0x4185c7
jmp 0x418668
push 0xee
lea edx, [ebp - 0xf4]
push 0
push edx
call fcn.005517e0
add esp, 0xc
lea eax, [esi - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x418610
mov cx, word [0x5a4c3c]
mov word [eax], cx
mov dl, byte [0x5a4c3e]
push 0
push 0
mov byte [eax + 2], dl
mov eax, dword [ebp - 0x114]
push 0
push 0xf
add eax, 4
push eax
lea ecx, [ebp - 0xf4]
push ecx
push esi
call fcn.00417470
add esp, 0x1c
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x418650
mov dx, word [0x5a47f0]
mov word [edi], dx
mov edi, dword [ebp - 0x100]
mov ecx, dword [ebp - 0x110]
cmp ecx, dword [ebp - 0x104]
jl 0x418550
cmp byte [esi], 0
je 0x418699
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x418682
mov ax, word [0x5a47f0]
mov word [edi], ax
mov edi, dword [ebp - 0x100]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4186a0
movzx ecx, word [edi + 6]
sub eax, edx
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0x104], eax
movzx eax, word [edi + 4]
push ecx
push edx
push eax
call fcn.004865f0
mov ecx, dword [ebp - 0x104]
add esp, 4
push eax
add ecx, esi
push str._6_s__d__d__1
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
movzx edx, word [ebx + 0x52a]
movzx eax, word [ebx + 0x5a4]
movzx ecx, word [edi + 8]
push edx
push eax
push ecx
push esi
call fcn.00411ed0
movzx edx, word [ebx + 0x52a]
movzx eax, word [ebx + 0x5a4]
movzx ecx, word [edi + 0xc]
push edx
push eax
push ecx
push esi
call fcn.00411ed0
movzx edx, word [ebx + 0x806]
movzx eax, word [ebx + 0x78c]
movzx ecx, word [edi + 0x18]
push edx
push eax
push ecx
push esi
call fcn.00411ed0
movzx edx, word [ebx + 0x806]
movzx eax, word [ebx + 0x78c]
movzx ecx, word [edi + 0x1a]
add esp, 0x44
push edx
push eax
push ecx
push esi
call fcn.00411ed0
movzx edx, word [ebx + 0x61e]
movzx eax, word [edi + 0xa]
push 0
push edx
push eax
push esi
call fcn.00411ed0
movzx ecx, word [ebx + 0x8fa]
movzx edx, word [edi + 0xe]
push 0
push ecx
push edx
push esi
call fcn.00411ed0
movzx eax, word [ebx + 0x974]
movzx ecx, word [edi + 0x10]
push 0
push eax
push ecx
push esi
call fcn.00411ed0
movzx edx, word [ebx + 0x880]
movzx eax, word [edi + 0x12]
add esp, 0x40
push 0
push edx
push eax
push esi
call fcn.00411ed0
movzx ecx, word [ebx + 0x698]
push 0
push ecx
movzx edx, word [edi + 0x14]
push edx
push esi
call fcn.00411ed0
movzx eax, word [ebx + 0x712]
movzx ecx, word [edi + 0x16]
push 0
push eax
push ecx
push esi
call fcn.00411ed0
movzx edx, word [ebx + 0x9ee]
movzx eax, word [edi + 0x1c]
push 0
push edx
push eax
push esi
call fcn.00411ed0
add esp, 0x40
test byte [ebp + 8], 1
jne 0x4188aa
movzx eax, word [edi + 6]
cmp dword [ebp - 0xf8], eax
jge 0x4188aa
movzx ecx, word [edi + eax*2 + 0x1a]
push ecx
call fcn.0047faa0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4188aa
lea edi, [esi - 1]
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x418820
mov dx, word [0x5a47f0]
mov eax, esi
mov word [edi], dx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418837
sub eax, edx
push 0x5f3e
lea edi, [esi + eax]
call fcn.004865f0
push eax
push str._1_s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0xee
lea eax, [ebp - 0xf4]
push 0
push eax
call fcn.005517e0
add esp, 0x1c
lea eax, [esi - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x418873
mov cx, word [0x5a4c40]
push 0
push 0
mov word [eax], cx
mov dl, byte [0x5a4c42]
push 0
push 0xf
mov byte [eax + 2], dl
add ebx, 4
push ebx
lea eax, [ebp - 0xf4]
push eax
push esi
call fcn.00417470
add esp, 0x1c
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005517d0
mov esp, ebp
pop ebp
ret