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

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
sub esp, 0x7c
mov eax, dword [esp + 0x90]
mov dword [esp + 0x40], edx
mov edx, dword [ecx + 0x1c]
mov ebp, dword [esp + 0x98]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x178]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00403e60
test eax, eax
je 0x422410
mov dword [esp + 0xc], 0
mov esi, eax
mov edx, dword [edi + 0x34]
mov eax, dword [edi + 0x30]
mov dword [esp], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.0045a860
test eax, eax
jne 0x422408
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0045a310
xor eax, dword [edi + 0x18]
xor edx, dword [edi + 0x1c]
or eax, edx
jne 0x422408
mov eax, dword [edi + 0x20]
mov dword [esp + 0x2c], eax
and eax, 0xfffffffb
cmp eax, 8
jne 0x422430
mov eax, dword [esp + 0xa0]
test eax, eax
jne 0x422420
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
or eax, edx
je 0x4224bc
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], 0
test edi, edi
mov dword [esp + 0x4c], esi
setne byte [esp + 0x47]
jmp 0x422308
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4224a8
lea edi, [esp + 0x58]
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
mov dword [esp], ebx
call eax
add dword [esp + 0x28], 1
mov esi, dword [esp + 0x2c]
xor edx, edx
add ebp, 0x20
add dword [esp + 0x30], esi
mov edi, dword [esp + 0x28]
mov eax, edx
mov esi, dword [esp + 0x38]
cmp edi, esi
sbb eax, dword [esp + 0x3c]
jae 0x4224b8
cmp dword [esp + 0x2c], 0xc
je 0x422450
mov esi, dword [esp + 0x30]
mov eax, dword [ebx + 8]
mov dword [esp], esi
call dword [eax + 0x4c]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x5c], edx
lea edx, [esi + 4]
mov dword [esp], edx
call dword [eax + 0x4c]
mov dword [esp + 0x68], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x6c], 0
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
test byte [ebx + 0x40], 0x42
je 0x42236b
cmp byte [esp + 0x47], 0
jne 0x42236b
mov ecx, dword [esp + 0x40]
sub esi, dword [ecx + 0x18]
sbb edi, dword [ecx + 0x1c]
shrd eax, edx, 8
shr edx, 8
mov dword [ebp + 8], esi
mov ecx, eax
mov dword [ebp + 0xc], edi
or ecx, edx
je 0x4223bc
mov ecx, dword [esp + 0x48]
xor edi, edi
cmp ecx, eax
sbb edi, edx
jae 0x422478
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov dword [esp], 0x488f74
mov dword [esp + 4], eax
call dword [0x483014]
mov eax, dword [0x485064]
mov edx, dword [esp + 0x6c]
cmp dword [esp + 0x2c], 0xc
mov dword [ebp], eax
mov eax, dword [esp + 0x68]
mov dword [ebp + 0x14], edx
mov dword [ebp + 0x10], eax
jne 0x4222c0
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4222c0
lea edx, [esp + 0x58]
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp], ebx
call eax
jmp 0x4222e0
mov dword [esp], esi
call sub.msvcrt.dll_free
add esp, 0x7c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x80]
mov dword [esp + 0x48], eax
jmp 0x42228c
mov dword [esp + 4], 0x523
mov dword [esp], 0x488da0
call fcn.00402e90
jmp 0x422276
lea eax, [esp + 0x58]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.0041db70
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
jmp 0x42234c
mov edi, dword [esp + 0x9c]
add eax, 0x3fffffff
lea eax, [edi + eax*4]
mov edx, dword [eax]
test byte [edx + 0x11], 1
je 0x4223c1
mov eax, dword [edx + 0x14]
mov eax, dword [eax + 0xa4]
jmp 0x4223c1
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x10]
jmp 0x4223ec
mov esi, dword [esp + 0x4c]
mov dword [esp], esi
call sub.msvcrt.dll_free
add esp, 0x7c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret