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

Disassembly:
sub esp, 0x570
push ebx
push ebp
push esi
lea eax, [esp + 0x20]
push edi
mov esi, ecx
xor ebx, ebx
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], ebx
call fcn.004bab20
test eax, eax
jne 0x4baf1f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x570
ret
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4bb299
cmp eax, 0x40
jbe 0x4baf3d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x570
ret
cmp eax, ebx
mov dword [esp + 0x1c], ebx
jbe 0x4bb299
mov dword [esp + 0x14], ebx
jmp 0x4baf53
mov ebx, dword [esp + 0x14]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ecx, 0x143
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4bafdc
mov ecx, dword [esi + 0x60]
sub ecx, eax
test ecx, 0xfffffffc
je 0x4bafdc
mov ebp, dword [esi + 0x60]
mov edx, dword [esp + 0x28]
mov edi, eax
mov ecx, ebp
sub ecx, edi
add ebx, edx
sar ecx, 2
test ecx, ecx
jle 0x4bafb4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp dword [edi + eax*4], ebx
jae 0x4bafae
or edx, 0xffffffff
lea edi, [edi + eax*4 + 4]
sub edx, eax
add ecx, edx
jmp 0x4bafb0
mov ecx, eax
test ecx, ecx
jg 0x4baf95
cmp edi, ebp
je 0x4bb279
cmp ebx, dword [edi]
jb 0x4bb279
mov ecx, dword [esi + 4]
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.004837b0
test eax, eax
je 0x4baf30
jmp 0x4baff8
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x50]
add ebx, edx
push ecx
mov ecx, dword [esi + 4]
push ebx
call fcn.004837b0
test eax, eax
je 0x4baf30
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
inc eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x4c], ecx
lea ecx, [esi + 0x68]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edx
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x50]
test eax, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], edx
jne 0x4bb04d
xor edx, edx
jmp 0x4bb063
mov edx, dword [ecx + 8]
sub edx, eax
mov eax, 0x6572ec3
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
test edx, edx
jle 0x4bb07f
mov edi, dword [esi + 0x6c]
cmp dword [edi], ebx
je 0x4bb107
inc eax
add edi, 0x50c
cmp eax, edx
jl 0x4bb06c
mov eax, dword [ecx + 8]
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x74]
mov dword [esp + 0x34], edi
push edx
push 1
push eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebp
call fcn.004bbca0
inc edi
mov dword [esp + 0x20], edi
mov ecx, dword [esi + 0x80]
mov edx, dword [esi + 0x84]
lea ebx, [esi + 0x78]
sub edx, ecx
mov eax, 0x38e38e39
mov ebp, ecx
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4bb1b1
mov esi, dword [ebx + 4]
test esi, esi
je 0x4bb0fa
mov edx, ecx
mov eax, 0x38e38e39
sub edx, esi
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov edi, edx
ja 0x4bb0ff
mov edi, 1
test esi, esi
jne 0x4bb10d
xor edx, edx
jmp 0x4bb120
mov dword [esp + 0x34], eax
jmp 0x4bb0aa
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea esi, [edx + edi]
test esi, esi
mov eax, esi
jge 0x4bb12b
xor eax, eax
lea edx, [eax + eax*8]
shl edx, 2
push edx
call fcn.004dbc04
add esp, 4
mov edi, eax
mov eax, dword [ebx + 4]
mov ecx, ebx
push edi
push ebp
push eax
call fcn.004bc2e0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], eax
push ecx
push 1
push eax
mov ecx, ebx
call fcn.004bc320
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 8]
add edx, 0x24
mov ecx, ebx
push edx
push eax
push ebp
call fcn.004bc2e0
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov ecx, ebx
call fcn.004ca170
mov eax, dword [ebx + 4]
push eax
call fcn.004db420
lea ecx, [esi + esi*8]
add esp, 4
lea edx, [edi + ecx*4]
mov ecx, ebx
mov dword [ebx + 0xc], edx
call fcn.004bbb40
inc eax
mov esi, dword [esp + 0x10]
mov dword [ebx + 4], edi
lea eax, [eax + eax*8]
lea ecx, [edi + eax*4]
mov dword [ebx + 8], ecx
jmp 0x4bb279
mov edx, ecx
mov eax, 0x38e38e39
sub edx, ebp
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4bb222
lea edx, [ebp + 0x24]
push edx
push ecx
push ebp
mov ecx, ebx
call fcn.004bc2e0
mov edi, dword [ebx + 8]
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
sub ecx, ebp
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
sub eax, edx
push eax
push edi
call fcn.004bc320
mov eax, dword [ebx + 8]
cmp ebp, eax
je 0x4bb275
mov edi, ebp
add ebp, 0x24
mov ecx, 9
lea esi, [esp + 0x2c]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x4bb20c
jmp 0x4bb271
lea eax, [ecx - 0x24]
push ecx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.004bc2e0
mov edx, dword [ebx + 8]
lea eax, [edx - 0x24]
cmp ebp, eax
je 0x4bb256
sub eax, 0x24
sub edx, 0x24
mov ecx, 9
mov esi, eax
mov edi, edx
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x4bb23d
mov esi, dword [esp + 0x10]
lea eax, [ebp + 0x24]
cmp ebp, eax
je 0x4bb275
mov edi, ebp
add ebp, 0x24
mov ecx, 9
lea esi, [esp + 0x2c]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x4bb25d
mov esi, dword [esp + 0x10]
add dword [ebx + 8], 0x24
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
add edx, 0x24
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
jb 0x4baf4f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x570
ret