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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
je 0x4b92b8
push esi
call fcn.004b9614
lea eax, [esi + 0x7d0]
push eax
call fcn.004d71be
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
xor ebx, ebx
lea edi, [esi + 0x1c]
mov dword [ebp - 0x34], ebx
cmp dword [esi + 0x74], ebx
je 0x4b92cf
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x30], edi
cmp eax, dword [edi]
je 0x4b92fa
mov eax, dword [esi + 0x14]
push dword [esi + 0x74]
push eax
call dword [eax + 4]
mov eax, dword [esi + 0x14]
push dword [edi]
mov dword [esi + 0x78], ebx
push eax
call dword [eax]
add esp, 0x10
mov dword [esi + 0x74], eax
test eax, eax
je 0x4b95a3
mov eax, dword [edi]
mov dword [esi + 0x78], eax
mov dword [ebp - 0x30], edi
cmp dword [esi + 0x7c], ebx
lea ebx, [esi + 0x80]
je 0x4b930c
mov eax, dword [ebx]
cmp eax, dword [esi + 0x18]
je 0x4b9336
mov eax, dword [esi + 0x14]
push dword [esi + 0x7c]
push eax
call dword [eax + 4]
push dword [esi + 0x18]
xor eax, eax
mov dword [ebx], eax
mov eax, dword [esi + 0x14]
push eax
call dword [eax]
add esp, 0x10
mov dword [esi + 0x7c], eax
test eax, eax
je 0x4b95a3
mov eax, dword [esi + 0x18]
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebp - 0x14], 1
mov dword [esi + 0x348], ecx
mov dword [esi + 0x350], ecx
mov dword [esi + 0x354], ecx
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov edx, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
mov dword [ebp + 8], eax
cmp edx, ecx
jne 0x4b93ed
cmp dword [ebp + 0xc], 0
je 0x4b93ad
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x7d0]
push eax
call fcn.004d7310
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov edx, ecx
mov dword [ebp - 8], edx
test eax, eax
jne 0x4b953b
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], ecx
cmp dword [esi + 0x68], eax
jne 0x4b93ed
mov ecx, dword [esi + 0x7c]
lea edx, [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
push edx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x34]
push ecx
push eax
mov dword [ebp - 0x10], ecx
call dword [eax]
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
push 0
pop edx
adc dword [esi + 0x64], edx
test ecx, ecx
je 0x4b93e5
test eax, eax
je 0x4b93eb
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x68], eax
xor eax, eax
mov edx, dword [edi]
mov edi, eax
sub edx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
cmp dword [esi + 0x44], eax
je 0x4b9427
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x4c]
sbb eax, dword [esi + 0x54]
cmp dword [ebp - 0x34], eax
jb 0x4b9427
mov eax, dword [ebp - 0xc]
ja 0x4b9419
cmp edx, eax
jb 0x4b9427
mov edx, eax
xor eax, eax
cmp dword [esi + 0x40], eax
mov dword [ebp - 0x1c], edx
cmovne edi, dword [ebp - 0x14]
mov eax, ecx
mov dword [ebp - 0xc], edx
sub eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x38]
push eax
xor eax, eax
cmp dword [ebp - 8], ecx
push edi
sete al
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x74]
add eax, dword [ebp + 8]
push eax
lea eax, [esi + 0x88]
push eax
call fcn.004b97a2
mov ecx, dword [ebp - 0x38]
add esp, 0x20
mov edx, dword [ebp - 0xc]
mov edi, eax
add dword [ebp + 8], edx
mov dword [esi + 0x780], ecx
mov ecx, dword [ebp - 0x18]
add dword [ebp - 8], ecx
add dword [esi + 0x58], ecx
push 0
pop eax
adc dword [esi + 0x5c], eax
add edx, dword [esi + 0x50]
mov dword [esi + 0x784], edi
adc eax, dword [esi + 0x54]
mov dword [ebp - 0x18], eax
mov dword [esi + 0x54], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x50], edx
test ecx, ecx
jne 0x4b94a9
test eax, eax
je 0x4b9545
test edi, edi
jne 0x4b9545
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp - 0x1c]
jae 0x4b954b
mov ecx, dword [ebp - 0x18]
cmp dword [esi + 0x3c], 0
je 0x4b952f
test edi, edi
jne 0x4b952f
mov eax, dword [esi + 0x58]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
sbb eax, dword [ebp - 0x24]
jne 0x4b9500
jb 0x4b94e8
cmp dword [ebp - 0x1c], 0x400000
jae 0x4b9500
mov eax, edx
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, ecx
sbb eax, dword [ebp - 0x2c]
jne 0x4b9500
cmp dword [ebp - 0x1c], 0x400000
jb 0x4b952f
mov eax, dword [esi + 0x3c]
push ecx
push edx
push dword [esi + 0x5c]
push dword [esi + 0x58]
push eax
call dword [eax]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4b9592
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0xc], 0
jne 0x4b959f
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor eax, eax
jmp 0x4b9379
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
mov ecx, dword [ebp - 0x18]
je 0x4b94c2
push dword [ebp + 8]
mov eax, dword [esi + 0x38]
push dword [esi + 0x74]
push eax
call dword [eax]
add esp, 0xc
mov edx, eax
add edx, dword [esi + 0x50]
mov dword [esi + 0x50], edx
push 0
pop ecx
adc ecx, dword [esi + 0x54]
mov dword [esi + 0x54], ecx
cmp eax, dword [ebp + 8]
jne 0x4b9587
xor eax, eax
mov dword [ebp + 8], eax
jmp 0x4b94c2
mov ecx, dword [ebp + 0x10]
push 9
pop eax
mov dword [ecx + 0x38], eax
jmp 0x4b95a6
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x38], 0xa
mov dword [eax + 0x30], edi
mov eax, edi
jmp 0x4b95a6
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret