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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, ecx
cmp esi, dword [edi + 0x3c]
lea ecx, [edi + 0x3c]
jge 0x436e6d
mov eax, dword [ecx + 8]
lea eax, [eax + esi*4]
jmp 0x436e73
push esi
call fcn.00435460
mov ebx, dword [eax]
test ebx, ebx
je 0x436e99
mov eax, dword [ebx + 8]
test eax, eax
jne 0x436e9b
mov ebp, dword [ebx + 4]
and ebp, 0x7f
call fcn.00500b30
mov ebp, dword [eax + ebp*4 - 4]
push ebx
mov ecx, ebp
call fcn.004fffc0
jmp 0x436e9b
xor eax, eax
mov ecx, eax
call fcn.00487d10
cmp eax, 1
je 0x43740a
cmp eax, 2
jle 0x436eb9
cmp eax, 4
jle 0x43740a
cmp esi, dword [edi + 0x3c]
lea ecx, [edi + 0x3c]
mov dword [esp + 0x1c], 0
jge 0x436ed1
mov ecx, dword [ecx + 8]
lea eax, [ecx + esi*4]
jmp 0x436ed7
push esi
call fcn.00435460
mov ebx, dword [eax]
test ebx, ebx
je 0x436efd
mov eax, dword [ebx + 8]
test eax, eax
jne 0x436eff
mov ebp, dword [ebx + 4]
and ebp, 0x7f
call fcn.00500b30
mov ebp, dword [eax + ebp*4 - 4]
push ebx
mov ecx, ebp
call fcn.004fffc0
jmp 0x436eff
xor eax, eax
mov edx, dword [esp + 0x24]
push edx
mov ecx, eax
call fcn.00476b10
push eax
mov ecx, edi
call fcn.004355e0
mov ebp, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x436f18
sub eax, edx
mov ebx, dword [esp + 0x20]
je 0x436fc3
push ebp
lea eax, [esp + 0x20]
push eax
mov ecx, edi
mov dword [esp + 0x24], 0
call fcn.00434ed0
cmp dword [edi + 0x88], 0
lea ecx, [edi + 0x48]
je 0x436f72
cmp esi, dword [ecx]
jge 0x436f58
mov ecx, dword [ecx + 8]
lea eax, [ecx + esi*4]
jmp 0x436f5e
push esi
call fcn.005f1b40
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push 1
push 1
push ebx
push edx
push ebp
call fcn.004f2ec0
jmp 0x436f96
cmp esi, dword [ecx]
jge 0x436f7e
mov eax, dword [ecx + 8]
lea eax, [eax + esi*4]
jmp 0x436f84
push esi
call fcn.005f1b40
mov ecx, dword [esp + 0x1c]
push 1
push 1
push ebx
push ecx
mov ecx, dword [eax]
push ebp
call fcn.004f2fd0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x436fc3
cmp esi, dword [edi + 0x6c]
lea ecx, [edi + 0x6c]
jge 0x436fae
mov edx, dword [ecx + 8]
lea eax, [edx + esi*2]
jmp 0x436fb4
push esi
call fcn.005f1d70
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
push ebp
mov ecx, edi
call fcn.00435060
cmp esi, dword [edi + 0x78]
lea ecx, [edi + 0x78]
jge 0x436fd6
mov eax, dword [ecx + 8]
lea edx, [esi + esi*2]
lea eax, [eax + edx*4]
jmp 0x436fdc
push esi
call fcn.005ed0b0
push ebp
mov ecx, eax
call fcn.005ec540
cmp dword [edi + 0xa0], 0
jne 0x4370a3
cmp dword [esp + 0x1c], 0
jne 0x4370ae
cmp esi, dword [edi + 0x3c]
lea ecx, [edi + 0x3c]
jge 0x43700c
mov ecx, dword [ecx + 8]
lea eax, [ecx + esi*4]
jmp 0x437012
push esi
call fcn.00435460
mov ecx, eax
call fcn.0048b200
mov ecx, eax
call fcn.00503030
push eax
mov ecx, edi
call fcn.00434e10
mov ebp, eax
push ebp
lea edx, [esp + 0x20]
push edx
mov ecx, edi
mov dword [esp + 0x24], 0
call fcn.00434ed0
cmp dword [edi + 0x88], 0
push esi
lea ecx, [edi + 0x48]
je 0x437065
call fcn.005f5260
mov ecx, dword [esp + 0x1c]
push 1
push 1
push ebx
push ecx
mov ecx, dword [eax]
push ebp
call fcn.004f2ec0
jmp 0x43707c
call fcn.005f5260
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push 1
push 1
push ebx
push edx
push ebp
call fcn.004f2fd0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x437142
push esi
lea ecx, [edi + 0x6c]
call fcn.00434b00
push ebx
mov ecx, 1
push esi
mov word [eax], cx
push ebp
mov ecx, edi
call fcn.00435060
cmp dword [esp + 0x1c], 0
je 0x437142
cmp esi, dword [edi + 0x3c]
lea ecx, [edi + 0x3c]
jge 0x4370be
mov edx, dword [ecx + 8]
lea eax, [edx + esi*4]
jmp 0x4370c4
push esi
call fcn.00435460
mov ebp, dword [eax]
test ebp, ebp
je 0x4370ea
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4370ec
mov ebx, dword [ebp + 4]
and ebx, 0x7f
call fcn.00500b30
mov ebx, dword [eax + ebx*4 - 4]
push ebp
mov ecx, ebx
call fcn.004fffc0
jmp 0x4370ec
xor eax, eax
mov ecx, eax
call fcn.00487d10
cmp eax, 2
jne 0x4373de
cmp esi, dword [edi + 0x48]
lea ecx, [edi + 0x48]
jge 0x43710c
mov eax, dword [ecx + 8]
lea eax, [eax + esi*4]
jmp 0x437112
push esi
call fcn.005f1b40
mov ecx, dword [eax]
mov edx, dword [edi]
push ecx
push edx
mov ecx, edi
call fcn.004360e0
test eax, eax
jne 0x4373de
push esi
mov ecx, edi
call fcn.00434ce0
push esi
lea ecx, [edi + 0x6c]
call fcn.00434b00
xor ecx, ecx
mov word [eax], cx
jmp 0x4373de
mov eax, dword [edi + 0x44]
lea ecx, [esi*4]
mov ebp, dword [eax + ecx]
add eax, ecx
test ebp, ebp
je 0x437175
mov eax, dword [ebp + 8]
test eax, eax
jne 0x437177
mov ebx, dword [ebp + 4]
and ebx, 0x7f
call fcn.00500b30
mov ebx, dword [eax + ebx*4 - 4]
push ebp
mov ecx, ebx
call fcn.004fffc0
jmp 0x437177
xor eax, eax
mov ecx, eax
call fcn.00503030
push eax
mov ecx, edi
call fcn.00434e10
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x80]
lea edx, [esi + esi*2]
mov ecx, dword [eax + edx*4]
xor ebx, ebx
xor edx, edx
cmp dx, word [edi + 0x84]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ebx
jge 0x437297
mov dword [esp + 0x1c], edx
cmp ebx, esi
je 0x43727e
mov eax, dword [edi + 0x44]
lea ecx, [ebx*4]
mov ebp, dword [eax + ecx]
add eax, ecx
test ebp, ebp
je 0x4371f6
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4371f8
mov ebx, dword [ebp + 4]
and ebx, 0x7f
call fcn.00500b30
mov ebx, dword [eax + ebx*4 - 4]
push ebp
mov ecx, ebx
call fcn.004fffc0
mov ebx, dword [esp + 0x10]
jmp 0x4371f8
xor eax, eax
mov ecx, eax
call fcn.00503030
push eax
mov ecx, edi
call fcn.00434e10
mov ecx, dword [edi + 0x80]
mov edx, dword [esp + 0x1c]
mov ebp, dword [edx + ecx]
mov ecx, dword [edi + 0x74]
cmp word [ecx + ebx*2], 0
je 0x437226
mov edx, dword [esp + 0x20]
push eax
push edx
jmp 0x43724c
mov eax, dword [esp + 0x14]
push ebp
push eax
call fcn.004028a0
add esp, 8
neg eax
sbb eax, eax
inc eax
cmp dword [edi + 0xa0], 0
jne 0x437265
test eax, eax
jne 0x437269
mov ecx, dword [esp + 0x20]
push ebp
push ecx
call fcn.004028a0
add esp, 8
neg eax
sbb eax, eax
add eax, 1
je 0x43727e
mov dword [esp + 0x24], 1
test eax, eax
je 0x43727e
mov edx, dword [edi + 0x50]
cmp dword [edx + ebx*4], 0
lea eax, [edx + ebx*4]
je 0x43727e
mov eax, dword [eax]
cmp word [eax + 0x78], 1
je 0x4372b4
movsx ecx, word [edi + 0x84]
add dword [esp + 0x1c], 0xc
inc ebx
cmp ebx, ecx
mov dword [esp + 0x10], ebx
jl 0x4371b7
cmp esi, dword [edi + 0x48]
lea ebx, [edi + 0x48]
jge 0x43736b
mov eax, dword [ebx + 8]
lea ecx, [esi*4]
add eax, ecx
jmp 0x437373
cmp esi, dword [edi + 0x48]
lea ebp, [edi + 0x48]
jge 0x4372ca
mov eax, dword [ebp + 8]
lea ecx, [esi*4]
add eax, ecx
jmp 0x4372d2
push esi
mov ecx, ebp
call fcn.005f1b40
mov eax, dword [eax]
test eax, eax
je 0x4372e2
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
lea eax, [ebx*4]
mov ebx, dword [edi + 0x50]
add ebx, eax
cmp esi, dword [ebp]
mov dword [esp + 0x1c], eax
jge 0x437305
mov eax, dword [ebp + 8]
lea ecx, [esi*4]
add eax, ecx
jmp 0x43730d
push esi
mov ecx, ebp
call fcn.005f1b40
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ebp, dword [edi + 0x5c]
add ebp, dword [esp + 0x1c]
cmp esi, dword [edi + 0x54]
lea ecx, [edi + 0x54]
jge 0x43732e
mov eax, dword [ecx + 8]
lea ecx, [esi*4]
add eax, ecx
jmp 0x437334
push esi
call fcn.005f1b40
mov edx, dword [ebp]
lea ecx, [edi + 0x6c]
mov dword [eax], edx
cmp esi, dword [ecx]
jge 0x437357
mov eax, dword [ecx + 8]
xor ecx, ecx
cmp dword [esp + 0x24], ecx
lea eax, [eax + esi*2]
setne cl
mov word [eax], cx
jmp 0x4373de
push esi
call fcn.005f1d70
xor ecx, ecx
cmp dword [esp + 0x24], ecx
setne cl
mov word [eax], cx
jmp 0x4373de
push esi
mov ecx, ebx
call fcn.005f1b40
mov eax, dword [eax]
test eax, eax
je 0x437383
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
cmp esi, dword [ebx]
jge 0x437395
mov eax, dword [ebx + 8]
lea ecx, [esi*4]
add eax, ecx
jmp 0x43739d
push esi
mov ecx, ebx
call fcn.005f1b40
lea ecx, [edi + 0x54]
mov dword [eax], 0
cmp esi, dword [ecx]
jge 0x4373b8
mov eax, dword [ecx + 8]
lea ecx, [esi*4]
add eax, ecx
jmp 0x4373be
push esi
call fcn.005f1b40
lea ecx, [edi + 0x6c]
mov dword [eax], 0
cmp esi, dword [ecx]
jge 0x4373d3
mov ecx, dword [ecx + 8]
lea eax, [ecx + esi*2]
jmp 0x4373d9
push esi
call fcn.005f1d70
xor edx, edx
mov word [eax], dx
cmp esi, dword [edi + 0x48]
lea ecx, [edi + 0x48]
jge 0x4373f8
mov eax, dword [ecx + 8]
pop edi
lea eax, [eax + esi*4]
mov eax, dword [eax]
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
push esi
call fcn.005f1b40
mov eax, dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, dword [edi + 0x48]
lea ebx, [edi + 0x48]
jge 0x43741a
mov ecx, dword [ebx + 8]
lea eax, [ecx + esi*4]
jmp 0x437422
push esi
mov ecx, ebx
call fcn.005f1b40
mov ecx, dword [eax]
test ecx, ecx
je 0x437430
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp esi, dword [ebx]
jge 0x43743c
mov ecx, dword [ebx + 8]
lea eax, [ecx + esi*4]
jmp 0x437444
push esi
mov ecx, ebx
call fcn.005f1b40
lea ecx, [edi + 0x54]
mov dword [eax], 0
cmp esi, dword [ecx]
jge 0x437459
mov edx, dword [ecx + 8]
lea eax, [edx + esi*4]
jmp 0x43745f
push esi
call fcn.005f1b40
lea ecx, [edi + 0x6c]
mov dword [eax], 0
cmp esi, dword [ecx]
jge 0x437474
mov eax, dword [ecx + 8]
lea eax, [eax + esi*2]
jmp 0x43747a
push esi
call fcn.005f1d70
xor ecx, ecx
mov word [eax], cx
cmp esi, dword [edi + 0x78]
lea ecx, [edi + 0x78]
jge 0x437492
mov eax, dword [ecx + 8]
lea edx, [esi + esi*2]
lea eax, [eax + edx*4]
jmp 0x437498
push esi
call fcn.005ed0b0
push 0x631c94
mov ecx, eax
call fcn.005ec540
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc