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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x4c
mov dword [esp + 0x40], ecx
mov ebx, edx
mov esi, eax
mov ebp, dword [esp + 0x6c]
mov edi, dword [esp + 0x70]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x28], edx
mov eax, 0x51eb851f
imul ebp
sar edx, 5
sar ebp, 0x1f
sub edx, ebp
mov dword [esp + 0x38], edx
mov eax, 0x51eb851f
imul edi
sar edx, 5
sar edi, 0x1f
sub edx, edi
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x74]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x78]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x7c]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x30], edx
test esi, esi
je 0x437208
mov ecx, dword [esi + 0x34]
test ebx, ebx
je 0x437201
mov edi, dword [ebx + 0x34]
movsx ebp, byte [esp + 0x80]
test ebp, ebp
je 0x436de9
mov esi, ebx
mov ebp, dword [esi + 0x34]
mov eax, esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ecx
call fcn.0040870c
mov ecx, dword [esp + 0x48]
movsx edx, byte [esp + 0x80]
test edx, edx
je 0x436e2c
mov edx, dword [esp + 0x3c]
cmp edx, dword [ebp + 0x78]
jne 0x436e28
mov edx, dword [esp + 0x30]
cmp edx, dword [ebp + 0x7c]
jne 0x436e24
mov ebx, 1
jmp 0x436e2e
xor ebx, ebx
jmp 0x436e2e
xor ebx, ebx
jmp 0x436e2e
xor ebx, ebx
cmp byte [ebp + 0x99], 1
je 0x4371cd
test ebx, ebx
je 0x4370fd
mov eax, dword [edi + 0x90]
test eax, eax
je 0x43720f
movsx edx, byte [esp + 0x84]
cmp edx, 0xa
je 0x4370ab
movsx edx, byte [esp + 0x84]
cmp edx, 0x15
je 0x436ffa
movsx edx, byte [esp + 0x84]
cmp edx, 0x1f
je 0x436fa8
movsx edx, byte [esp + 0x84]
cmp edx, 0x29
je 0x436f56
movsx edx, byte [esp + 0x84]
cmp edx, 0x33
je 0x436f04
test ebx, ebx
jne 0x436ede
mov edx, dword [ebp + 0x90]
test edx, edx
je 0x436ec1
push edx
mov dword [esp + 0x48], eax
call fcn.0046995f
mov eax, dword [esp + 0x48]
add esp, 4
mov dword [ebp + 0x90], eax
mov edx, dword [esp + 0x3c]
mov dword [ebp + 0x78], edx
mov ecx, dword [esp + 0x30]
mov dword [ebp + 0x7c], ecx
mov eax, esi
call fcn.0040870c
jmp 0x436ee3
cmp ebx, 2
je 0x436eed
xor eax, eax
add esp, 0x4c
pop ebx
pop ebp
pop esi
pop edi
ret
mov edx, dword [esp + 0x3c]
mov dword [ebp + 0x78], edx
mov ecx, dword [esp + 0x30]
mov dword [ebp + 0x7c], ecx
mov eax, esi
call fcn.0040870c
jmp 0x436ee3
mov edi, dword [esp + 0x38]
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0x78]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x7c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 0x90]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], eax
call fcn.00437228
mov eax, dword [esp + 0x44]
jmp 0x436ea2
mov edi, dword [esp + 0x6c]
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x70]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0x78]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x7c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 0x90]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x44], eax
call fcn.004377d4
mov eax, dword [esp + 0x44]
jmp 0x436ea2
mov edi, dword [esp + 0x38]
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0x78]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x7c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 0x90]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], eax
call fcn.00437e70
mov eax, dword [esp + 0x44]
jmp 0x436ea2
movzx edx, byte [0x5d24f4]
test edx, edx
je 0x437062
movzx edx, byte [0x5b504c]
test edx, edx
je 0x437062
mov edi, dword [esp + 0x6c]
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x70]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0x78]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x7c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 0x90]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x44], eax
call fcn.0041909c
mov eax, dword [esp + 0x44]
jmp 0x436ea2
mov edx, dword [esp + 0x7c]
push edx
mov edi, dword [esp + 0x7c]
push edi
push dword [ecx + 0x7c]
push dword [ecx + 0x78]
mov edx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x5c]
push edx
push dword [ecx + 0x90]
push eax
mov dword [esp + 0x6c], eax
call fcn.004184b4
mov eax, dword [esp + 0x6c]
add esp, 0x28
jmp 0x436ea2
mov edi, dword [esp + 0x38]
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0x78]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x7c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 0x90]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], eax
call fcn.00418108
mov eax, dword [esp + 0x44]
jmp 0x436ea2
mov edi, dword [esp + 0x3c]
lea edx, [edi + edi]
add edx, edx
cmp edi, 0x2000
jg 0x437192
mov edi, dword [esp + 0x30]
imul edi, edx
lea edx, [edi + edx + 4]
push edx
mov dword [esp + 0x4c], ecx
call fcn.004696fc
mov ecx, dword [esp + 0x4c]
add esp, 4
test eax, eax
je 0x437144
movzx edx, byte [ecx + 0x86]
mov byte [ebp + 0x86], dl
jmp 0x436e49
mov edx, dword [esp + 0x30]
push edx
mov edi, dword [esp + 0x40]
push edi
push 0
push 0x80f5a4
push 0x80e270
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
call fcn.0049acf0
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push 0
push 1
push 0x1965e
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
call fcn.004667e0
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
add esp, 0x20
jmp 0x437132
mov edx, dword [esp + 0x30]
push edx
push edi
push 0x80f57c
push 0x80e270
mov dword [esp + 0x58], ecx
call fcn.0040c598
mov ecx, dword [esp + 0x58]
push 1
push 0x186aa
mov dword [esp + 0x60], ecx
call fcn.0046683c
mov ecx, dword [esp + 0x60]
add esp, 0x18
xor eax, eax
jmp 0x437132
movsx edx, byte [esp + 0x80]
test edx, edx
je 0x436e3b
mov edx, dword [esp + 0x3c]
cmp edx, dword [ebp + 0x78]
jge 0x436e3b
mov edx, dword [esp + 0x30]
cmp edx, dword [ebp + 0x7c]
jge 0x436e3b
mov ebx, 2
jmp 0x436e3b
xor edi, edi
jmp 0x436ddb
xor ecx, ecx
jmp 0x436dd0
mov eax, 0xffffffff
add esp, 0x4c
pop ebx
pop ebp
pop esi
pop edi
ret