Function at 0x418f30
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd4c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x7c]
cmp edx, edi
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
jne case.0x418f88.4
mov edx, dword [ebp + 0x80]
lea ebx, [ebp + 0x80]
cmp edx, edi
jne case.0x418f88.4
cmp dword [ecx + 0x4c], edi
jne case.0x418f88.4
xor edx, edx
mov dl, byte [eax + 0xa]
mov esi, edx
cmp esi, 9
ja case.0x418f88.4
xor edx, edx
mov dl, byte [esi + 0x4194b0]
jmp dword [edx*4 + 0x41949c]
mov esi, dword [esp + 0xd60]
mov eax, dword [eax + 0xc]
push esi
push edi
push eax
push ecx
lea ecx, [esp + 0xb4]
call fcn.0041b390
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xd40], edi
xor edx, edx
lea edi, [esp + 0xe8]
mov bl, byte [ecx + 0xb]
mov ecx, 5
cmp bl, 0x20
sete dl
add esi, 0x18
mov dword [esp + 0xd20], edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xd58], ebp
add ebp, 0x4c
push ebp
push 1
lea ecx, [esp + 0xac]
call fcn.004186d0
lea ecx, [esp + 0xa4]
call fcn.0041b440
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4c
ret 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], 0x20000000
mov cl, byte [eax + 0xb]
xor edx, edx
cmp cl, 0x21
lea eax, [esp + 0x74]
sete dl
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], edx
call fcn.0041af60
mov edx, dword [esp + 0xd60]
lea ecx, [esp + 0x74]
push ecx
lea eax, [esp + 0x78]
push edx
push eax
call fcn.00406500
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esp, 0xc
xor esi, esi
mov dl, byte [eax + ecx]
inc eax
mov byte [esp + 0x14], dl
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x14]
mov cl, byte [eax + ecx]
and edx, 0xff
inc eax
mov byte [esp + 0x14], cl
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], edx
and eax, 0xff
cmp word [ebp + 0x62], di
mov dword [esp + 0x48], eax
je 0x4190ac
mov edx, dword [ebp]
push ebx
push edx
call fcn.00418620
add esp, 8
mov esi, eax
lea eax, [esp + 0x58]
mov dword [esp + 0x34], edi
push eax
mov dword [esp + 0x14], edi
call fcn.004069f0
add esp, 4
mov dword [esp + 0x14], edi
cmp dword [esp + 0x10], edi
jne 0x4192cd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dl, byte [eax + ecx]
inc eax
mov byte [esp + 0x50], dl
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x50]
and ebx, 0xff
mov dword [esp + 0x10], ebx
je case.0x418f88.4
mov edx, ebx
and edx, 8
mov dword [esp + 0x38], edx
je 0x419128
add ecx, eax
add eax, 2
mov dword [esp + 0x1c], eax
xor eax, eax
mov ah, byte [ecx + 1]
mov al, byte [ecx]
mov ecx, dword [esp + 0x3c]
push eax
call fcn.0041e3f0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
test bl, 4
je 0x419241
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x70]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.0041aeb0
mov ebx, dword [eax]
cmp word [ebp + 0x62], 0
mov dword [esp + 0x54], ebx
jne 0x419235
mov eax, dword [ebp]
lea ecx, [eax + 0x504]
call fcn.00406c60
mov esi, eax
test esi, esi
je case.0x418f88.4
mov eax, dword [ebp]
mov ecx, esi
add eax, 0x158
push eax
call fcn.0040c590
mov ecx, dword [ebp + 0x80]
mov edx, dword [esp + 0x34]
mov ax, word [esp + 0x56]
mov dword [esi + 8], ecx
mov dword [ebp + 0x80], esi
mov dword [esi + 0xc], edx
xor dx, dx
xor cx, cx
mov dl, bl
mov cl, ah
mov word [esi + 0x24], dx
mov word [esi + 0x26], cx
xor dx, dx
xor cx, cx
mov dl, al
mov eax, dword [esp + 0xd60]
mov cl, bh
lea edi, [esi + 0x20]
mov word [esi + 0x22], cx
lea ecx, [eax + 0x18]
mov word [edi], dx
cmp dword [ecx], 0
je 0x4191d5
push 1
push edi
call fcn.00413110
xor eax, eax
mov ax, word [edi + 6]
cmp eax, 0xff
jge 0x419218
xor ecx, ecx
inc eax
mov cx, word [edi + 4]
xor edx, edx
imul ecx, eax
mov dx, word [edi + 2]
sar ecx, 8
imul edx, eax
mov word [edi + 4], cx
xor ecx, ecx
mov cx, word [edi]
imul ecx, eax
sar edx, 8
sar ecx, 8
mov word [edi + 2], dx
mov word [edi], cx
mov eax, 1
jmp 0x41921a
xor eax, eax
mov byte [esi + 0x14], al
mov edx, dword [ebp]
mov eax, dword [edx + 0x174]
test eax, eax
je 0x419231
mov ecx, esi
call fcn.0040ca60
inc dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
test bl, 1
je 0x419266
lea edi, [eax + ecx]
add eax, 2
xor edx, edx
mov dword [esp + 0x1c], eax
mov dh, byte [edi + 1]
xor ebx, ebx
mov bl, byte [edi]
movsx edx, dx
or edx, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x68], edx
test bl, 2
je 0x419287
lea edi, [eax + ecx]
add eax, 2
xor edx, edx
mov dword [esp + 0x1c], eax
mov dh, byte [edi + 1]
xor ebx, ebx
mov bl, byte [edi]
movsx edx, dx
or edx, ebx
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4192ab
lea edi, [eax + ecx]
add eax, 2
xor edx, edx
mov dword [esp + 0x1c], eax
mov dh, byte [edi + 1]
mov dl, byte [edi]
shl edx, 6
mov dword [esp + 0x64], edx
mov dword [esp + 0x58], edx
mov cl, byte [eax + ecx]
inc eax
mov byte [esp + 0x40], cl
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x18]
and eax, 0xff
mov dword [esp + 0x10], eax
call fcn.0041b2d0
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x18]
push edx
call fcn.0041b2e0
mov edi, eax
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
call fcn.0041b360
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
test ebx, ebx
je 0x4193ce
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x74]
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.00406500
mov al, byte [ebx + 0x2a]
add esp, 0xc
test al, 8
mov eax, dword [ebx + 0xc]
je 0x419340
xor ecx, ecx
xor edx, edx
mov ch, byte [eax + edi*4 + 3]
mov dl, byte [eax + edi*4 + 1]
mov cl, byte [eax + edi*4 + 2]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + edi*4]
shl ecx, 8
or ecx, edx
jmp 0x419349
xor ecx, ecx
mov ch, byte [eax + edi*2 + 1]
mov cl, byte [eax + edi*2]
lea edx, [esp + 0x8c]
push edx
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0xb4]
call fcn.0041b390
mov ecx, dword [esp + 0x110]
mov eax, 1
mov dword [esp + 0xd40], eax
mov dword [esp + 0xd58], ebp
mov dword [ecx], 0
mov edx, dword [esp + 0x114]
mov dword [edx], 0
mov ecx, dword [esp + 0x114]
mov dword [ecx + 4], 0
mov edx, dword [esp + 0x110]
lea ecx, [esp + 0xa4]
mov dword [edx + 4], esi
mov dword [esp + 0x10c], eax
lea eax, [ebp + 0x4c]
push eax
push 0
call fcn.004186d0
lea ecx, [esp + 0xa4]
call fcn.0041b440
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x10]
add edx, ecx
dec eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x10], eax
xor edi, edi
jmp 0x4190c5
mov esi, dword [esp + 0xd60]
mov edx, dword [eax + 0xc]
push esi
push edi
push edx
push ecx
lea ecx, [esp + 0xb4]
call fcn.0041b390
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xd40], edi
xor ecx, ecx
lea edi, [esp + 0xe8]
cmp byte [eax + 0xb], 0x2e
sete cl
mov dword [esp + 0xd20], ecx
add esi, 0x18
mov ecx, 5
xor edx, edx
mov dx, word [ebp + 0x16]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xd58], ebp
add ebp, 0x4c
push ebp
lea ecx, [esp + 0xa8]
mov dword [esp + 0x100], edx
call fcn.004188f0
lea ecx, [esp + 0xa4]
call fcn.0041b440
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4c
ret 4
mov ebp, dword [ebp + 0x84]
test byte [ebp + 0x55], 1
je case.0x418f88.4
mov eax, dword [esp + 0xd60]
push 1
push edi
push eax
mov ecx, ebp
call fcn.00404190
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4c
ret 4