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

Disassembly:
sub esp, 0xa8
push ebx
mov ebx, dword [esp + 0xb4]
xor eax, eax
push ebp
mov ebp, dword [esp + 0xb4]
push esi
push edi
lea esi, [esp + 0x18]
mov edi, ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
call fcn.004365d0
test eax, eax
jne 0x438779
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x437d96
cmp dword [esp + 0x1c], 0
jne 0x437d96
lea esi, [esp + 0x38]
call fcn.004365d0
test eax, eax
jne 0x438779
mov eax, dword [esp + 0x38]
or eax, dword [esp + 0x3c]
mov edi, ebx
je 0x437d81
lea esi, [esp + 0x50]
call fcn.004365d0
test eax, eax
jne 0x438779
mov edx, dword [esp + 0x54]
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp edx, ecx
ja 0x438774
mov ecx, dword [esp + 0x50]
jb 0x437d62
cmp ecx, eax
ja 0x438774
add dword [ebx], ecx
sub eax, ecx
lea esi, [esp + 0x38]
mov dword [ebx + 4], eax
call fcn.004365d0
test eax, eax
je 0x437d26
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
lea esi, [esp + 0x18]
call fcn.004365d0
test eax, eax
jne 0x438779
mov eax, dword [esp + 0x18]
cmp eax, 3
jne 0x437e7b
cmp dword [esp + 0x1c], 0
jne 0x437e7b
mov edi, dword [esp + 0xd4]
mov ecx, dword [ebp + 0x30]
mov edx, dword [esp + 0xc8]
xor eax, eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov eax, dword [ebp + 0x34]
push edi
push eax
mov eax, dword [esp + 0xcc]
push ecx
push edx
push ebx
push eax
lea eax, [esp + 0xa4]
mov edx, 8
call fcn.004379b0
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xe4]
add esp, 0x18
lea esi, [esp + 0x8c]
mov dword [esp + 0x34], eax
mov dword [edx], ecx
call fcn.004363d0
cmp dword [esp + 0x34], 0
je 0x437e64
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
lea esi, [esp + 0x18]
mov edi, ebx
call fcn.004365d0
test eax, eax
jne 0x438779
mov eax, dword [esp + 0x18]
cmp eax, 4
jne 0x437eed
cmp dword [esp + 0x1c], 0
jne 0x437eed
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0xcc]
lea esi, [ebp + 0x38]
push esi
push edx
push eax
mov eax, dword [esp + 0xd0]
push 0x40000000
push ebp
lea ebx, [esp + 0x78]
call fcn.00437890
add esp, 0x18
test eax, eax
jne 0x438779
mov ecx, dword [ebp + 0x30]
add dword [esi], ecx
mov edx, dword [ebp + 0x34]
mov edi, dword [esp + 0xc0]
adc dword [esi + 4], edx
lea esi, [esp + 0x18]
call fcn.004365d0
test eax, eax
jne 0x438779
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, eax
or edx, ecx
jne 0x437f04
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
cmp eax, 5
jne 0x438774
xor eax, eax
cmp ecx, eax
jne 0x438774
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xc0]
lea ebx, [esp + 0x2c]
call fcn.004366d0
test eax, eax
jne 0x438779
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0xc0]
lea esi, [esp + 0x18]
mov edi, ebx
mov dword [ebp + 0x40], eax
call fcn.004365d0
test eax, eax
jne 0x438779
mov ecx, dword [esp + 0x18]
or ecx, dword [esp + 0x1c]
je 0x43823c
lea esi, [esp + 0x38]
mov edi, ebx
call fcn.004365d0
test eax, eax
jne 0x438779
mov edx, dword [esp + 0x3c]
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp edx, ecx
ja 0x438774
mov esi, dword [esp + 0x38]
jb 0x437fa0
cmp esi, eax
ja 0x438774
cmp dword [esp + 0x1c], ecx
ja case.0x437fc6.16
mov ecx, dword [esp + 0x18]
cmp ecx, 0x100
jae case.0x437fc6.16
add ecx, 0xfffffff2
cmp ecx, 7
ja case.0x437fc6.16
jmp dword [ecx*4 + 0x438794]
test eax, eax
je 0x438774
dec eax
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov cl, byte [eax]
inc eax
mov byte [esp + 0x17], cl
mov dword [ebx], eax
test cl, cl
jne 0x437ff1
dec esi
mov dword [esp + 0x24], esi
mov edi, eax
jmp 0x438035
mov eax, dword [esp + 0xc0]
lea ebx, [esp + 0x50]
call fcn.004366d0
test eax, eax
jne 0x438779
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0xcc]
cmp ecx, dword [eax]
jae 0x438774
mov eax, dword [esp + 0xc8]
mov edi, dword [eax + ecx*8]
mov ecx, dword [eax + ecx*8 + 4]
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0x24], ecx
test byte [esp + 0x24], 1
jne 0x438774
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0xd0]
mov ecx, dword [esi]
lea eax, [edx*4 + 4]
push eax
push esi
call ecx
add esp, 8
mov dword [ebp + 0x74], eax
test eax, eax
je 0x438784
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x438072
xor ebp, ebp
jmp 0x438099
push edx
mov edx, dword [esi]
push esi
call edx
add esp, 8
mov dword [ebp + 0x78], eax
test eax, eax
je 0x438784
mov ecx, dword [esp + 0x24]
push ecx
push edi
push eax
call fcn.00444b20
mov edx, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [ebp + 0x74]
mov eax, dword [esp + 0x2c]
mov edi, edx
mov edx, dword [ebp + 0x78]
call fcn.00437af0
test eax, eax
jne 0x438779
cmp byte [esp + 0x17], al
jne 0x43821e
mov eax, dword [esp + 0x24]
sub dword [ebx + 4], eax
add dword [ebx], eax
jmp 0x43821e
mov esi, dword [esp + 0x2c]
lea edi, [esp + 0x44]
mov eax, esi
mov edx, ebx
call fcn.00436830
test eax, eax
jne 0x438779
mov ecx, dword [esp + 0x44]
mov eax, esi
call fcn.00436860
mov dword [esp + 0x30], eax
mov dword [esp + 0x5c], 0
jmp 0x43821e
mov eax, dword [esp + 0x30]
lea edi, [esp + 0x5c]
mov edx, ebx
call fcn.00436830
test eax, eax
jne 0x438779
jmp 0x43821e
mov esi, dword [esp + 0xd0]
lea edi, [ebp + 0x54]
call fcn.00436370
mov eax, dword [esp + 0x2c]
mov edx, esi
push edx
push edi
mov ecx, ebx
call fcn.004368a0
add esp, 8
test eax, eax
jne 0x438779
mov eax, dword [ebx + 4]
test eax, eax
je 0x438774
dec eax
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov cl, byte [eax]
inc eax
mov dword [ebx], eax
test cl, cl
jne 0x438162
mov eax, ebx
jmp 0x4381ae
mov eax, dword [esp + 0xc0]
lea ebx, [esp + 0x34]
call fcn.004366d0
test eax, eax
jne 0x438779
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xcc]
cmp ecx, dword [eax]
jae 0x438774
mov eax, dword [esp + 0xc8]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x2c]
push ecx
push eax
mov eax, esi
mov ecx, edi
call fcn.00436970
add esp, 8
test eax, eax
jne 0x438779
jmp 0x43821e
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xcc]
mov ecx, dword [eax]
push edx
push ecx
lea ecx, [ebp + 0x5c]
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0x34]
push edx
push ebx
push eax
push ecx
call fcn.00437b60
add esp, 0x18
test eax, eax
jne 0x438779
jmp 0x43821e
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xcc]
mov ecx, dword [eax]
push edx
push ecx
lea ecx, [ebp + 0x64]
jmp 0x4381df
sub eax, esi
add dword [ebx], esi
mov dword [ebx + 4], eax
lea esi, [esp + 0x18]
mov edi, ebx
call fcn.004365d0
test eax, eax
je 0x437f60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x60]
jne 0x438774
lea esi, [esp + 0x38]
mov edi, ebx
call fcn.004365d0
test eax, eax
jne 0x438779
mov eax, dword [esp + 0x38]
or eax, dword [esp + 0x3c]
je 0x438294
mov eax, ebx
call fcn.00436750
test eax, eax
jne 0x438779
lea esi, [esp + 0x38]
mov edi, ebx
call fcn.004365d0
test eax, eax
je 0x438261
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0xd0]
mov eax, dword [esi]
xor edi, edi
lea edx, [ecx*4 + 4]
push edx
push esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov byte [esp + 0x1f], 0
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1d], 0
mov byte [esp + 0x1c], 0x80
call eax
add esp, 8
mov dword [ebp + 0x6c], eax
cmp eax, edi
je 0x438784
mov eax, dword [ebp + 0x40]
cmp eax, edi
jne 0x4382fb
mov dword [ebp + 0x70], edi
jmp 0x438316
mov edx, dword [esi]
lea ecx, [eax*4]
push ecx
push esi
call edx
add esp, 8
mov dword [ebp + 0x70], eax
cmp eax, edi
je 0x438784
mov eax, dword [ebp + 0x40]
mov edx, dword [esi]
lea ecx, [eax*8 + 8]
push ecx
push esi
call edx
add esp, 8
mov dword [ebp + 0x44], eax
cmp eax, edi
je 0x438784
mov eax, dword [ebp + 0x40]
add eax, 7
shr eax, 3
cmp eax, edi
jne 0x438346
mov dword [ebp + 0x48], edi
jmp 0x43835a
push eax
mov eax, dword [esi]
push esi
call eax
add esp, 8
mov dword [ebp + 0x48], eax
cmp eax, edi
je 0x438784
mov edi, dword [ebp + 0x40]
lea ebx, [ebp + 0x4c]
call fcn.00436320
test eax, eax
jne 0x438779
cmp dword [esp + 0x7c], eax
je 0x4383a4
mov eax, dword [esp + 0x78]
mov cl, byte [eax]
dec dword [esp + 0x7c]
inc eax
mov byte [esp + 0x17], cl
mov dword [esp + 0x78], eax
test cl, cl
je 0x438390
mov dword [esp + 0x30], eax
jmp 0x4383a4
mov ecx, dword [esp + 0x64]
add ecx, 7
shr ecx, 3
add ecx, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
jbe 0x438704
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
nop
cmp byte [esp + 0x14], 0
mov eax, dword [esp + 0x28]
jne 0x4383f8
movzx ecx, byte [esp + 0x16]
mov edx, dword [ebp + 0x48]
dec eax
shr eax, 3
mov byte [eax + edx], cl
movzx ecx, byte [esp + 0x15]
mov edx, dword [ebp + 0x4c]
mov byte [eax + edx], cl
mov eax, dword [esp + 0x28]
mov byte [esp + 0x16], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x14], 0x80
mov ecx, dword [ebp + 0x44]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x44]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
mov ecx, dword [ebp + 0x50]
mov dword [ecx + eax*4], 0
test esi, esi
je 0x438489
mov ecx, eax
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, eax
shr ecx, 3
mov cl, byte [ecx + esi]
test cl, dl
je 0x438489
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x438467
mov esi, dword [esp + 0x50]
mov ecx, esi
and ecx, 7
mov ebx, 0x80
sar ebx, cl
mov ecx, esi
shr ecx, 3
mov dl, byte [ecx + edx]
test dl, bl
jne 0x438460
mov cl, byte [esp + 0x14]
or byte [esp + 0x16], cl
inc esi
mov dword [esp + 0x50], esi
jmp 0x43846f
mov dl, byte [esp + 0x14]
or byte [esp + 0x16], dl
cmp dword [esp + 0x40], 0
jne 0x43851f
mov ecx, dword [ebp + 0x70]
mov dword [ecx + eax*4], 0xffffffff
jmp 0x4386cc
cmp dword [esp + 0x40], 0
jne 0x43851f
mov esi, dword [esp + 0x24]
jmp 0x4384a0
cmp esi, dword [ebp + 4]
jae 0x438774
cmp dword [esp + 0x68], 0
mov edx, dword [ebp + 0x6c]
mov dword [edx + esi*4], eax
mov dword [esp + 0x48], 1
je 0x4384d3
lea ebx, [esp + 0x48]
lea eax, [esp + 0x68]
call fcn.004366d0
test eax, eax
jne 0x438779
mov eax, dword [esp + 0x48]
mov dword [esp + 0x40], eax
test eax, eax
jne 0x438523
mov eax, dword [ebp + 0x20]
movzx eax, byte [eax + esi]
mov ecx, dword [ebp + 0x1c]
add eax, dword [ecx + esi*4]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx + eax*8]
add dword [esp + 0x18], edx
mov eax, dword [ecx + eax*8 + 4]
adc edi, eax
mov dword [esp + 0x1c], edi
cmp edi, eax
jb 0x438774
ja 0x438514
cmp dword [esp + 0x18], edx
jb 0x438774
mov eax, dword [esp + 0x28]
inc esi
mov dword [esp + 0x24], esi
jmp 0x4384a0
mov esi, dword [esp + 0x24]
mov edx, dword [ebp + 0x70]
mov eax, dword [esp + 0x28]
mov dword [edx + eax*4], esi
mov edx, dword [esp + 0x44]
test edx, edx
je 0x438557
mov ecx, eax
and ecx, 7
mov ebx, 0x80
sar ebx, cl
shr eax, 3
mov al, byte [eax + edx]
test al, bl
jne 0x4386cc
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
sub dword [esp + 0x40], 1
mov ebx, dword [esp + 0x18]
jne 0x438651
mov ecx, dword [ebp + 0x20]
movzx eax, byte [ecx + esi]
mov edx, dword [ebp + 0x1c]
add eax, dword [edx + esi*4]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx + eax*8]
mov eax, dword [ecx + eax*8 + 4]
mov ecx, dword [ebp + 0x6c]
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 0x44]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + esi*4]
mov ecx, dword [edx + eax*8]
mov edx, dword [edx + eax*8 + 4]
sub ebx, ecx
sbb edi, edx
cmp dword [esp + 0x3c], edi
jb 0x438774
mov edi, dword [esp + 0x38]
ja 0x4385b1
cmp edi, ebx
jb 0x438774
mov eax, dword [esp + 0x3c]
add ecx, edi
adc edx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
cmp edx, eax
jb 0x438774
ja 0x4385d3
cmp ecx, edi
jb 0x438774
cmp dword [esp + 0x48], 1
mov eax, dword [esp + 0x28]
jne 0x43861b
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x43861b
mov ecx, eax
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, eax
shr ecx, 3
mov cl, byte [ecx + edi]
test cl, dl
je 0x43861b
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp + 0x50]
mov dword [ecx + eax*4], edx
mov al, byte [esp + 0x14]
or byte [esp + 0x15], al
inc esi
mov dword [esp + 0x24], esi
jmp 0x4386cc
cmp byte [esp + 0x17], 0
jne 0x43862f
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x43864a
test byte [ecx], 0x80
je 0x43864a
mov ecx, dword [esp + 0x30]
mov edi, dword [ecx]
mov edx, dword [ebp + 0x50]
mov dword [edx + eax*4], edi
mov al, byte [esp + 0x14]
add ecx, 4
or byte [esp + 0x15], al
mov dword [esp + 0x30], ecx
inc esi
mov dword [esp + 0x24], esi
jmp 0x4386cc
lea esi, [esp + 0x80]
lea edi, [esp + 0x70]
call fcn.004365d0
test eax, eax
jne 0x438779
mov edx, dword [esp + 0x80]
add dword [esp + 0x18], edx
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x1c]
adc ecx, eax
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jb 0x438774
ja 0x438699
cmp dword [esp + 0x18], edx
jb 0x438774
cmp byte [esp + 0x17], 0
jne 0x4386ad
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4386cc
test byte [eax], 0x80
je 0x4386cc
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x50]
mov esi, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x14]
or byte [esp + 0x15], al
mov dword [ecx + esi*4], edx
mov eax, dword [esp + 0x28]
shr byte [esp + 0x14], 1
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x2c]
jb 0x4383c0
cmp byte [esp + 0x14], 0x80
je 0x438704
movzx edx, byte [esp + 0x16]
mov ecx, dword [ebp + 0x48]
dec eax
shr eax, 3
mov byte [eax + ecx], dl
movzx edx, byte [esp + 0x15]
mov ecx, dword [ebp + 0x4c]
mov byte [eax + ecx], dl
cmp dword [esp + 0x40], 0
mov eax, dword [ebp + 0x44]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov dword [eax + ecx*8], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*8 + 4], edx
jne 0x438774
mov eax, dword [esp + 0x24]
mov edx, dword [ebp + 0x6c]
mov dword [edx + eax*4], ecx
cmp eax, dword [ebp + 4]
jae 0x43875e
mov esi, eax
mov edi, ecx
cmp dword [esp + 0x68], 0
je 0x438774
lea ebx, [esp + 0x48]
lea eax, [esp + 0x68]
call fcn.004366d0
test eax, eax
jne 0x438779
cmp dword [esp + 0x48], eax
jne 0x438774
mov eax, dword [ebp + 0x6c]
inc esi
mov dword [eax + esi*4], edi
cmp esi, dword [ebp + 4]
jb 0x438734
cmp dword [esp + 0x68], 0
je 0x437ef7
cmp dword [esp + 0x6c], 0
je 0x437ef7
mov eax, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0xa8
ret