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

Disassembly:
sub esp, 0xd54
push ebx
push ebp
mov ebp, ecx
push esi
xor ebx, ebx
push edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x88]
cmp ecx, ebx
mov esi, dword [eax + 4]
mov dword [esp + 0x40], esi
jne case.0x4201b3.4
cmp dword [ebp + 0x8c], ebx
jne case.0x4201b3.4
cmp dword [esi + 0x4c], ebx
jne case.0x4201b3.4
xor ecx, ecx
mov cl, byte [eax + 0xa]
mov edi, ecx
cmp edi, 9
ja case.0x4201b3.4
xor edx, edx
mov dl, byte [edi + 0x420710]
jmp dword [edx*4 + 0x4206fc]
mov edi, dword [esp + 0xd68]
mov eax, dword [eax + 0xc]
push edi
push ebx
push eax
push esi
lea ecx, [esp + 0xb4]
call fcn.00422650
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xd5c], ebx
xor edx, edx
lea esi, [edi + 0x18]
mov bl, byte [ecx + 0xb]
mov ecx, 5
cmp bl, 0x20
lea edi, [esp + 0x104]
sete dl
mov dword [esp + 0xd3c], edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xd60], ebp
add ebp, 0x50
push ebp
push 1
lea ecx, [esp + 0xac]
call fcn.0041f900
lea ecx, [esp + 0xa4]
call fcn.00422730
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd54
ret 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], 0x20000000
mov cl, byte [eax + 0xb]
xor edx, edx
cmp cl, 0x21
lea eax, [esp + 0x74]
sete dl
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], edx
call fcn.00422220
mov edx, dword [esp + 0xd68]
lea ecx, [esp + 0x74]
push ecx
lea eax, [esp + 0x78]
push edx
push eax
call fcn.0040a640
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 0xc
xor esi, esi
mov dl, byte [eax + ecx]
inc eax
mov byte [esp + 0x10], dl
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov cl, byte [eax + ecx]
and edx, 0xff
inc eax
mov byte [esp + 0x10], cl
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], edx
and eax, 0xff
cmp word [ebp + 0x66], bx
mov dword [esp + 0x4c], eax
je 0x4202dd
mov edx, dword [ebp]
lea eax, [ebp + 0x8c]
push eax
push edx
call fcn.0041f830
add esp, 8
mov esi, eax
lea eax, [esp + 0x58]
mov dword [esp + 0x38], ebx
push eax
call fcn.0040ab30
add esp, 4
mov dword [esp + 0x34], 0
test ebx, ebx
jne 0x42051e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dl, byte [eax + ecx]
inc eax
mov byte [esp + 0x50], dl
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x50]
and ebx, 0xff
mov dword [esp + 0x30], ebx
je case.0x4201b3.4
mov edx, ebx
and edx, 8
mov dword [esp + 0x3c], edx
je 0x420357
add ecx, eax
add eax, 2
mov dword [esp + 0x18], eax
xor eax, eax
mov ah, byte [ecx + 1]
mov al, byte [ecx]
mov ecx, dword [esp + 0x40]
push eax
call fcn.00426020
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov edx, ebx
and edx, 4
jne 0x42036e
mov edi, dword [ebp]
cmp dword [edi + 0xd8], 0
je 0x420495
test edx, edx
je 0x420395
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x70]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00422170
mov ebx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jmp 0x420399
mov ebx, dword [esp + 0x10]
cmp word [ebp + 0x66], 0
jne 0x420491
mov eax, dword [ebp]
lea ecx, [eax + 0x51c]
call fcn.0040afc0
mov esi, eax
test esi, esi
je case.0x4201b3.4
mov eax, dword [ebp]
mov ecx, esi
add eax, 0x164
push eax
call fcn.00412c20
mov ecx, dword [ebp + 0x8c]
mov edx, dword [esp + 0x38]
mov ax, word [esp + 0x12]
mov dword [esi + 8], ecx
mov dword [ebp + 0x8c], 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 + 0xd68]
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 0x420424
push 1
push edi
call fcn.004198f0
xor eax, eax
mov ax, word [edi + 6]
cmp eax, 0xff
jge 0x420467
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 0x420469
xor eax, eax
mov byte [esi + 0x14], al
mov edx, dword [ebp]
mov eax, dword [edx + 0x180]
test eax, eax
je 0x420480
mov ecx, esi
call fcn.004130f0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
test bl, 1
je 0x4204ba
lea edi, [eax + ecx]
add eax, 2
xor edx, edx
mov dword [esp + 0x18], eax
mov dh, byte [edi + 1]
xor ebx, ebx
mov bl, byte [edi]
movsx edx, dx
or edx, ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x68], edx
test bl, 2
je 0x4204db
lea edi, [eax + ecx]
add eax, 2
xor edx, edx
mov dword [esp + 0x18], 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 + 0x3c]
test edx, edx
je 0x4204ff
lea edi, [eax + ecx]
add eax, 2
xor edx, edx
mov dword [esp + 0x18], 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 + 0x44], cl
lea ecx, [esp + 0x14]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x18], eax
and ebx, 0xff
call fcn.00422590
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x14]
push edx
call fcn.004225a0
mov edi, eax
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
call fcn.00422620
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x420624
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x74]
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.0040a640
mov eax, dword [esp + 0x40]
add esp, 0xc
mov cl, byte [eax + 0x2e]
mov eax, dword [eax + 0xc]
test cl, 8
je 0x420596
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 0x42059f
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 + 0x4c]
push eax
lea ecx, [esp + 0xb4]
call fcn.00422650
mov ecx, dword [esp + 0x12c]
mov eax, 1
mov dword [esp + 0xd5c], eax
mov dword [esp + 0xd60], ebp
mov dword [ecx], 0
mov edx, dword [esp + 0x130]
mov dword [edx], 0
mov ecx, dword [esp + 0x130]
mov dword [ecx + 4], 0
mov edx, dword [esp + 0x12c]
lea ecx, [esp + 0xa4]
mov dword [edx + 4], esi
mov dword [esp + 0x128], eax
lea eax, [ebp + 0x50]
push eax
push 0
call fcn.0041f900
lea ecx, [esp + 0xa4]
call fcn.00422730
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x68]
add edx, ecx
dec ebx
mov dword [esp + 0x68], edx
jmp 0x4202f6
mov edi, dword [esp + 0xd68]
mov edx, dword [eax + 0xc]
push edi
push ebx
push edx
push esi
lea ecx, [esp + 0xb4]
call fcn.00422650
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xd5c], ebx
xor ecx, ecx
lea esi, [edi + 0x18]
mov dl, byte [eax + 0xb]
lea edi, [esp + 0x104]
cmp dl, 0x2e
sete cl
mov dword [esp + 0xd3c], ecx
mov ecx, 5
xor edx, edx
mov dx, word [ebp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xd60], ebp
add ebp, 0x50
push ebp
lea ecx, [esp + 0xa8]
mov dword [esp + 0x11c], edx
call fcn.0041fb00
lea ecx, [esp + 0xa4]
call fcn.00422730
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd54
ret 4
mov eax, dword [esp + 0xd68]
mov edi, dword [ebp + 0x90]
add edi, 0x380
mov ecx, 5
lea esi, [eax + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ebp, dword [ebp + 0x90]
mov eax, dword [ebp + 0x68]
test ah, 1
je case.0x4201b3.4
push ebx
mov ecx, ebp
call fcn.004088a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd54
ret 4