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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x30]
xor eax, eax
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], ebx
cmp byte [esi + 0x42], 4
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
jne 0x4267bd
mov eax, dword [esi + 0x3c]
jmp 0x426999
test byte [esi + 0x40], 0x20
je 0x4267df
mov edx, dword [esi + 0x34]
push esi
call fcn.0042066c
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x426997
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x28]
xor ecx, ecx
mov edi, dword [esp + 0x24]
cmp dword [esi + 0x48], ecx
jne 0x426917
push ebp
push edi
xor edx, edx
mov ecx, eax
call fcn.0042056d
add esp, 8
test byte [esi + 0x40], 2
je 0x426828
cmp ebp, edx
jl 0x426828
jg 0x426810
cmp edi, edx
jbe 0x426828
mov eax, edi
mov ecx, ebp
sub eax, 1
sbb ecx, edx
cmp dword [esi + 0x10], eax
jne 0x426828
cmp dword [esi + 0x14], ecx
jne 0x426828
or ebx, 0xffffffff
jmp 0x426851
test ebx, ebx
jne 0x426851
lea eax, [esp + 0x3c]
xor edx, edx
push eax
push dword [esp + 0x3c]
mov ecx, esi
push ebp
push edi
call fcn.0042380c
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x426997
mov ebx, dword [esp + 0x3c]
movsx eax, byte [esi + 0x44]
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x38]
push dword [esp + 0x38]
mov edi, dword [esi + eax*4 + 0x78]
mov ecx, edi
push dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
push ebp
push dword [esp + 0x38]
mov eax, dword [eax + 0x50]
mov edx, eax
push dword [esp + 0x28]
mov dword [esp + 0x58], eax
call fcn.004247b6
mov ecx, eax
add esp, 0x1c
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x426997
movsx ecx, byte [esi + 0x44]
movzx eax, word [esi + ecx*2 + 0x50]
mov ebp, eax
test ebx, ebx
jne 0x426936
mov ecx, dword [edi + 0x48]
call fcn.0041ddb1
mov ecx, eax
test ecx, ecx
jne 0x426997
mov eax, dword [edi + 0x40]
mov ebx, dword [esp + 0x3c]
mov ax, word [eax + ebp*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x14]
movzx edx, cx
and edx, eax
add edx, dword [edi + 0x38]
cmp byte [edi + 5], 0
jne 0x4268e2
mov eax, dword [edx]
mov dword [ebx], eax
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.0042468d
mov dword [esp + 0x14], eax
mov edx, ebp
pop ecx
lea eax, [esp + 0x10]
mov ecx, edi
push eax
movzx eax, word [esp + 0x40]
push eax
call fcn.00424a25
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x426997
jmp 0x42694d
test ebx, ebx
jne 0x426851
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
push dword [esp + 0x3c]
push ebp
push edi
call fcn.004206f8
jmp 0x426840
mov ebx, dword [esp + 0x3c]
jns 0x42694d
xor edx, edx
cmp word [edi + 0x12], dx
jbe 0x42694d
inc eax
mov word [esi + ecx*2 + 0x50], ax
movzx ebp, ax
lea eax, [esp + 0x10]
mov edx, ebp
push eax
xor eax, eax
mov ecx, edi
push eax
push eax
push dword [esp + 0x20]
push ebx
call fcn.00424b28
mov ecx, dword [esp + 0x24]
xor eax, eax
add esp, 0x14
mov word [esi + 0x24], ax
test ecx, ecx
jne 0x426997
cmp byte [edi + 1], al
je 0x426997
and byte [esi + 0x40], 0xfd
mov ecx, esi
call fcn.00426630
mov ecx, eax
xor edx, edx
movsx eax, byte [esi + 0x44]
mov eax, dword [esi + eax*4 + 0x78]
mov byte [eax + 1], dl
mov byte [esi + 0x42], dl
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret