Function at 0x4021c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
lea esi, [esp + 0x50]
mov word [esp + 0x7e], 0x6c30
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x40], eax
mov eax, ebx
or eax, 0x45970acb
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], 0x6f74498a
mov eax, dword [esp + 0x44]
cmp eax, 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], edx
je 0x4022ad
jmp 0x4022ea
movzx eax, word [esp + 0x7e]
add eax, 0xffff93d0
mov dword [esp + 0x70], 0
mov ecx, esp
lea edx, [esp + 0x70]
mov dword [ecx + 0xc], edx
mov si, ax
movzx eax, si
mov dword [ecx + 8], eax
lea eax, [esp + 0x48]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx], eax
mov ecx, dword [esp + 0x28]
call ecx
sub esp, 0x10
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x38]
xor edx, 0x3ccecd0c
mov edi, dword [esp + 0x40]
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov dl, cl
xor ecx, ecx
mov esi, 0x6820f093
mov dword [esp + 0x1c], ecx
mov cl, dl
mov edi, dword [esp + 0x1c]
shrd esi, edi, cl
test dl, 0x20
cmovne esi, edi
cmovne edi, edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], esi
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
xor eax, eax
mov dword [esp + 0x78], 0xa487180c
mov ecx, esp
mov edx, dword [esp + 0x30]
mov dword [ecx], edx
mov dword [ecx + 8], 0x18
mov dword [ecx + 4], 0x42a8a1
mov dword [esp + 0x18], eax
call fcn.00403060
mov eax, dword [esp + 0x38]
add eax, eax
mov ecx, dword [esp + 0x40]
adc ecx, ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], eax
mov eax, esp
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
call fcn.00402660
mov ecx, eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
cmp ecx, 0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
je 0x4022ad
xor eax, eax
mov ecx, 0xed863b3
mov edx, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, edx
mul ecx
mov ecx, dword [esp + 0x40]
imul esi, ecx, 0xed863b3
add edx, esi
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
lea eax, [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x4c], edx
mov esi, esp
mov dword [esi], edx
mov dword [esp + 0x10], eax
call fcn.00402fe0
mov ecx, eax
mov edx, dword [esp + 0x38]
and edx, 0x12007baf
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], 0
mov edx, dword [esp + 0x74]
mov esi, 0x6f754989
sub esi, edx
mov di, ax
mov word [esp + 0x48], di
mov word [esp + 0x4a], di
mov eax, dword [esp + 0x38]
and eax, eax
mov edx, dword [esp + 0x40]
and edx, edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x80], eax
and ecx, esi
cmp ecx, 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
je 0x4022a5
jmp 0x402243