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

Disassembly:
sub esp, 0x148
mov eax, dword [0x7be9b8]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x15c]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
xor ebp, ebp
mov dword [esp + 0x18], edi
mov esi, dword [edi + 0x90]
mov dword [esp + 0x34], ecx
mov esi, dword [esi + 0x14]
mov eax, dword [esi + 0x78]
mov ebx, dword [esi + 0xec]
test eax, eax
je 0x4b53d0
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
cmp dword [edi + 0x40], ebp
je 0x4b53dd
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x4b53fb
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push esi
mov eax, dword [eax + 0x74]
call eax
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4b5b8a
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.004b4760
mov ecx, dword [esp + 0x168]
add esp, 8
mov dword [esi + 0x170], eax
mov dword [esp + 0x10], eax
mov dword [eax + 0x14], ecx
cmp dword [esp + 0x1c], 0
jne 0x4b544d
push 0
push edi
call fcn.004b3920
add esp, 8
test eax, eax
je 0x4b5443
mov ecx, dword [eax]
push eax
push edi
mov dword [edi + 0x68], ecx
call fcn.004b39a0
add esp, 8
jmp 0x4b5b70
mov ebp, 1
jmp 0x4b5b70
mov eax, dword [esi + 0x16c]
xor edi, edi
push dword [esi + 0x88]
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], edi
call fcn.00440a30
mov dword [esp + 0x54], eax
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edi
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x40], ecx
cmp word [eax + 0x70], di
je 0x4b54a5
push edi
call fcn.00456eb0
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x4b5599
cmp dword [ecx + 0x34], edi
jne 0x4b5599
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x4b54dd
push eax
call fcn.00459190
mov edi, eax
add esp, 4
test edi, edi
je 0x4b54dd
mov ebx, 1
mov dword [esp + 0x24], ebx
jmp 0x4b55a1
mov eax, dword [esi + 0x78]
cmp dword [eax + 0x28], 0
jne 0x4b556d
cmp dword [eax + 0x20], 0
jg 0x4b556d
cmp dword [eax + 0x4c], 0
je 0x4b5503
mov dword [esp + 0x2c], 1
jmp 0x4b559f
cmp dword [eax + 0x3c], 0
jne 0x4b5518
mov dword [esi + 0x16c], 0
jmp 0x4b559f
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x4b559f
push eax
call fcn.004b7520
add esp, 4
test eax, eax
je 0x4b559f
push dword [esi + 0x16c]
call fcn.004b7c20
push dword [esi + 0x16c]
call fcn.004b6180
mov ecx, dword [esi + 0x16c]
add esp, 8
cmp dword [ecx + 0x60], 0
jne 0x4b555d
mov eax, dword [ecx + 0x84]
mov edi, dword [eax + 4]
push dword [ecx + 0x90]
call fcn.004b1980
add esp, 4
jmp 0x4b559f
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4b5582
push ecx
call fcn.00459190
mov edi, eax
add esp, 4
mov eax, dword [esi + 0x78]
mov eax, dword [eax + 0x20]
test edi, edi
cmovne ebx, edi
mov edi, ebx
xor ebx, ebx
test eax, eax
cmovg ebx, eax
mov dword [esp + 0x24], ebx
jmp 0x4b55a1
mov dword [esi + 0x16c], edi
xor ebx, ebx
mov ebp, dword [esp + 0x10]
push 0x10000
mov dword [ebp + 0x1d0], 0x40
call fcn.00470460
mov dword [ebp + 0x1cc], eax
xor edx, edx
mov eax, dword [ebp + 0x1d0]
add esp, 4
movzx ecx, word [esi + 0xa2]
shl eax, 0xa
div ecx
mov ebp, eax
mov dword [esp + 0x44], ebp
call fcn.00463190
test eax, eax
jne 0x4b560e
cmp ebp, 1
jle 0x4b560e
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x4b5604
cmp dword [ecx + 0x34], eax
jne 0x4b5604
cmp dword [esi + 0x16c], eax
jne 0x4b560e
cmp dword [esp + 0x2c], eax
jne 0x4b560e
mov dword [esp + 0x30], 1
jmp 0x4b5616
mov dword [esp + 0x30], 0
test edi, edi
jne 0x4b5628
cmp dword [esi + 0x16c], edi
mov eax, 1
cmove edi, eax
mov eax, dword [esi]
test edi, edi
jne 0x4b5639
mov eax, dword [eax + 0x18]
push esi
call eax
add esp, 4
jmp 0x4b565d
mov eax, dword [eax + 0x10]
push edi
push esi
call eax
add esp, 8
mov ebp, eax
cmp dword [esp + 0x2c], 0
je 0x4b565f
test ebp, ebp
jne 0x4b565f
mov eax, dword [esi]
push 1
push esi
mov eax, dword [eax + 0x24]
call eax
add esp, 8
mov ebp, eax
mov edi, dword [esi + 0xec]
mov dword [esp + 0x28], edi
test ebp, ebp
jne 0x4b5b02
cmp dword [esi + 0x28], 0
jne 0x4b5b02
call fcn.0046f9b0
test ax, ax
jne 0x4b5afd
cmp dword [esp + 0x30], 0
je 0x4b57a0
mov ecx, dword [esp + 0x1c]
cmp edi, ecx
ja 0x4b5b02
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4b56ae
cmp eax, dword [esp + 0x44]
jl 0x4b571b
mov eax, dword [esp + 0x44]
sub ecx, edi
cmp ecx, eax
jb 0x4b56bc
mov ecx, eax
jmp 0x4b56bd
inc ecx
test ebx, ebx
je 0x4b56c6
cmp ebx, ecx
cmovb ecx, ebx
movzx eax, word [esi + 0xa2]
mov ebx, eax
cdq
push edx
push eax
imul ebx, ecx
lea ecx, [edi - 1]
push 0
push ecx
call fcn.004db0b0
mov edi, eax
mov ecx, edx
movzx eax, word [esi + 0xa0]
cdq
add edi, eax
adc ecx, edx
push ecx
push edi
mov edi, dword [esp + 0x18]
push ebx
push dword [edi + 0x1cc]
push dword [esi + 0x8c]
call fcn.00446910
add esp, 0x14
cmp eax, ebx
jne 0x4b5a70
mov edi, dword [esp + 0x28]
xor ebx, ebx
jmp 0x4b571f
mov ebx, dword [esp + 0x38]
movzx eax, word [esi + 0xa2]
mov ecx, dword [esp + 0x10]
imul eax, ebx
push 0
push esi
add eax, dword [ecx + 0x1cc]
mov dword [esi + 0xe4], eax
mov eax, dword [esi]
mov dword [esi + 0xec], edi
mov eax, dword [eax + 0x54]
call eax
add esp, 8
cmp eax, 1
je 0x4b5b02
mov eax, dword [esi + 0xe4]
xor ecx, ecx
mov dword [esi + 0x118], 1
mov dword [esi + 0x114], 1
cmp byte [eax], 0x2a
sete cl
cmp dword [esi + 0x7c], 0
mov dword [esi + 0x124], ecx
je 0x4b579b
mov eax, dword [esi]
push esi
mov eax, dword [eax + 0xd4]
call eax
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4b5b02
inc ebx
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4b57bf
push eax
call fcn.00468140
push eax
call fcn.00459010
add esp, 8
test eax, eax
je 0x4b5b02
cmp edi, dword [esp + 0x1c]
ja 0x4b59ca
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4b57e8
push eax
call fcn.00468140
push eax
call fcn.00459010
add esp, 8
test eax, eax
je 0x4b59ca
mov ebx, dword [esp + 0x18]
movzx ecx, word [ebx + 0x70]
test cx, cx
je 0x4b580d
mov eax, dword [esi]
push dword [esp + 0x14]
push ecx
mov eax, dword [eax + 0x58]
push esi
call eax
mov ebp, eax
add esp, 0xc
mov eax, dword [esp + 0x14]
jmp 0x4b581c
push dword [ebx + 0xc]
call fcn.00468140
add esp, 4
mov dword [esp + 0x14], eax
push eax
call fcn.0045b4f0
add esp, 4
cmp eax, 0x40
ja 0x4b58c7
je 0x4b5883
sub eax, 2
cmp eax, 0x1e
ja case.0x4b5843.3
movzx eax, byte [eax + 0x4b5bb0]
jmp dword [eax*4 + 0x4b5ba4]
movzx eax, word [ebx + 0x74]
push eax
movzx eax, word [ebx + 0x72]
push eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x20]
call fcn.004b21a0
movzx eax, word [ebx + 0x72]
push eax
lea eax, [esp + 0x68]
push eax
push dword [esi + 0xec]
push dword [esp + 0x2c]
call fcn.004b4530
add esp, 0x20
jmp 0x4b59ce
cmp byte [ebx + 0x6e], 0x54
jne case.0x4b5843.32
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x18]
call fcn.004593e0
push 0x11
lea eax, [esp + 0x60]
push eax
push dword [esi + 0xec]
push dword [esp + 0x24]
call fcn.004b4530
add esp, 0x18
jmp 0x4b59ce
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x18]
call fcn.00458fe0
push 8
jmp 0x4b5899
cmp eax, 0x80
je 0x4b599a
cmp eax, 0x400
je 0x4b596c
cmp eax, 0xc00
je 0x4b596c
mov eax, dword [ebx + 0x90]
mov ebx, dword [eax]
call fcn.0046f9b0
test ax, ax
jne 0x4b5954
call fcn.004383e0
mov edi, eax
push 0x21
push edi
call fcn.00438500
push 0x402
push edi
call fcn.004385a0
push 0
push edi
call fcn.00438560
push 0x21
call fcn.0043fc80
push eax
push edi
call fcn.004384a0
add esp, 0x24
test ebx, ebx
je 0x4b593b
push ebx
push edi
call fcn.004384c0
add esp, 8
mov eax, dword [esi]
push edi
push esi
mov eax, dword [eax + 0x144]
call eax
push edi
call fcn.00438c30
mov edi, dword [esp + 0x34]
add esp, 0xc
mov ebx, dword [esp + 0x18]
mov ebp, 1
mov dword [esp + 0x3c], 0
mov eax, ebp
mov dword [ebx + 0x48], ebp
jmp 0x4b59d6
push dword [esp + 0x14]
call fcn.00458f80
add esp, 4
push eax
push dword [esp + 0x18]
call fcn.00458fa0
add esp, 4
push eax
push dword [esi + 0xec]
push dword [esp + 0x1c]
call fcn.004b4530
add esp, 0x10
jmp 0x4b59ce
push dword [esp + 0x14]
call fcn.00459010
neg eax
push 1
sbb al, al
and al, 0xe
add al, 0x46
mov byte [esp + 0x5c], al
lea eax, [esp + 0x5c]
push eax
push dword [esi + 0xec]
push dword [esp + 0x20]
call fcn.004b4530
add esp, 0x14
jmp 0x4b59ce
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b59e3
sub eax, 1
mov dword [esp + 0x24], eax
je 0x4b5b02
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x4b5a1a
mov eax, dword [esi + 0x78]
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x18]
jl 0x4b5a16
push edx
mov dword [esp + 0x24], 0
call fcn.00468140
push eax
call fcn.00459010
add esp, 8
test eax, eax
je 0x4b5af4
inc dword [esp + 0x20]
cmp dword [esp + 0x30], 0
je 0x4b5a24
inc edi
jmp 0x4b5a5b
test ebp, ebp
jne 0x4b5b43
mov eax, dword [esi]
push 1
push esi
mov eax, dword [eax + 0x28]
call eax
add esp, 8
mov ebp, eax
cmp dword [esp + 0x2c], 0
je 0x4b5a55
test ebp, ebp
jne 0x4b5a55
mov eax, dword [esi]
push 1
push esi
mov eax, dword [eax + 0x24]
call eax
add esp, 8
mov ebp, eax
mov edi, dword [esi + 0xec]
mov dword [esp + 0x28], edi
test ebp, ebp
jne 0x4b5b02
mov ebx, dword [esp + 0x24]
jmp 0x4b5671
call fcn.00444730
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov ecx, dword [ecx + 0x90]
mov eax, dword [ecx + 0x14]
mov ebx, dword [ecx]
mov dword [esp + 0x34], eax
call fcn.0046f9b0
test ax, ax
jne 0x4b5b06
call fcn.004383e0
mov edi, eax
push 0x17
push edi
call fcn.00438500
push 0x3f2
push edi
call fcn.004385a0
push dword [esp + 0x50]
push edi
call fcn.00438560
push 0x17
call fcn.0043fc80
push eax
push edi
call fcn.004384a0
add esp, 0x24
test ebx, ebx
je 0x4b5ad9
push ebx
push edi
call fcn.004384c0
add esp, 8
mov ecx, dword [esp + 0x34]
push edi
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x144]
call eax
push edi
call fcn.00438c30
add esp, 0xc
jmp 0x4b5b02
mov dword [ebx + 0x48], 1
jmp 0x4b5b02
mov ebp, 1
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x30], 0
je 0x4b5b36
mov eax, dword [esp + 0x48]
mov dword [esi + 0xe4], eax
mov dword [esi + 0x114], 0
test ebp, ebp
jne 0x4b5b43
mov eax, dword [esi]
push dword [esp + 0x28]
push esi
mov eax, dword [eax + 0x10]
call eax
add esp, 8
mov ebp, eax
test ebp, ebp
jne 0x4b5b43
push edi
call fcn.004b4930
add esp, 4
mov eax, dword [esp + 0x18]
cmp word [eax + 0x70], 0
je 0x4b5b5a
push dword [esp + 0x14]
call fcn.0045a800
add esp, 4
mov eax, dword [esp + 0x4c]
push dword [esp + 0x50]
mov dword [esi + 0x16c], eax
call fcn.00440a30
add esp, 4
push 1
push dword [esp + 0x14]
call fcn.004b4330
add esp, 8
mov dword [esi + 0x170], 0
mov eax, ebp
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004daa4c
add esp, 0x148
ret