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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
xor ebx, ebx
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebx
cmp dword [edi + 0x18], ebx
jne 0x42221a
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov dword [eax + 4], ebx
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
call fcn.0041df30
cmp eax, ebx
jne 0x422468
movsx esi, word [edi + 0x5e]
mov ecx, dword [edi + esi*4 + 0x88]
cmp byte [ecx + 3], bl
jne 0x42223e
cmp byte [ecx + 2], bl
jne 0x42224b
movzx eax, word [ecx + 0x10]
cdq
add dword [esp + 8], eax
adc dword [esp + 0xc], edx
xor ebx, ebx
cmp byte [ecx + 3], bl
je 0x4223ca
movzx eax, word [edi + 0x5e]
cmp ax, bx
je 0x422456
cwde
mov eax, dword [edi + eax*4 + 0x88]
cmp eax, ebx
je 0x422387
mov eax, dword [eax + 0x44]
cmp eax, ebx
je 0x422387
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x4222c7
dec dword [esi + 0x78]
mov ecx, dword [esi + 0x88]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov ebx, dword [ecx]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004d7d10
push edx
mov edx, dword [ebx + 0x48]
push eax
mov eax, dword [esi + 0x3c]
push eax
call edx
add esp, 0x10
jmp 0x42232c
or edx, 0xffffffff
add word [eax + 0x1a], dx
jne 0x42232c
mov ecx, dword [eax + 0x1c]
add dword [ecx + 0xc], edx
test byte [eax + 0x18], 2
jne 0x422300
mov ecx, dword [eax + 0x1c]
cmp dword [ecx + 0x1c], ebx
je 0x42232c
cmp dword [eax + 0x14], 1
jne 0x4222ed
mov dword [ecx + 0x2c], ebx
mov eax, dword [eax]
mov ecx, dword [ecx + 0x28]
push ebx
push eax
push ecx
call dword [0x4f8c38]
add esp, 0xc
jmp 0x42232c
call fcn.004107c0
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx]
mov dword [eax + 0x20], edx
cmp edx, ebx
je 0x422314
mov dword [edx + 0x24], eax
mov dword [ecx], eax
cmp dword [ecx + 4], ebx
jne 0x42231e
mov dword [ecx + 4], eax
cmp dword [ecx + 8], ebx
jne 0x42232c
test byte [eax + 0x18], 4
jne 0x42232c
mov dword [ecx + 8], eax
cmp dword [esi + 0x78], 0
jne 0x422387
mov edx, dword [esi + 0xcc]
cmp dword [edx + 0xc], 0
jne 0x422387
mov al, byte [esi + 0xf]
cmp al, 6
je 0x422380
test al, al
je 0x422380
cmp al, 2
jb 0x42236c
mov eax, dword [0x506ce0]
test eax, eax
je 0x422358
call eax
mov eax, esi
call fcn.00416740
mov eax, dword [0x506ce4]
test eax, eax
je 0x422380
call eax
jmp 0x422380
cmp byte [esi + 4], 0
jne 0x422380
push 0
push 0
mov ebx, esi
call fcn.00413020
add esp, 8
mov ebx, esi
call fcn.00412ec0
dec word [edi + 0x5e]
mov cx, word [edi + 0x5e]
xor eax, eax
mov word [edi + 0x42], ax
movsx eax, cx
xor ebx, ebx
mov byte [edi + 0x5a], bl
mov edx, dword [edi + eax*4 + 0x88]
mov ax, word [edi + eax*2 + 0x60]
cmp ax, word [edx + 0x10]
jae 0x422256
movsx ecx, cx
inc word [edi + ecx*2 + 0x60]
movsx esi, word [edi + 0x5e]
lea eax, [edi + ecx*2 + 0x60]
mov ecx, dword [edi + esi*4 + 0x88]
movzx eax, word [edi + esi*2 + 0x60]
movzx edx, word [ecx + 0x10]
mov esi, edi
cmp eax, edx
jne 0x422406
movzx eax, byte [ecx + 5]
mov ecx, dword [ecx + 0x38]
movzx edx, byte [eax + ecx + 9]
lea ecx, [eax + ecx + 8]
movzx eax, byte [ecx]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
push eax
jmp 0x422440
mov edx, dword [ecx + 0x40]
lea edx, [edx + eax*2]
movzx eax, byte [edx + 1]
movzx edx, byte [edx]
shl edx, 8
or eax, edx
movzx edx, word [ecx + 0x12]
and eax, edx
add eax, dword [ecx + 0x38]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
push ecx
call fcn.0041de80
add esp, 4
cmp eax, ebx
je 0x422229
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret