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

Disassembly:
push 0xffffffffffffffff
push 0x5b51d1
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push eax
push ecx
mov dword [esp + 0x1c], esi
call fcn.004beab0
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
add esp, 8
cmp edi, eax
je 0x4ba959
mov ecx, eax
sub ecx, eax
sar ecx, 2
lea ebx, [ecx*4]
push ebx
push eax
push edi
call fcn.00548cc0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x14], ebx
xor ebp, ebp
cmp dword [esi + 0x30], ebp
je 0x4bb6e7
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
lea eax, [esp + 0x7c]
push eax
push esi
mov dword [esp + 0x150], ebp
call fcn.004ba470
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x4ba999
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
jmp 0x4ba99d
mov dword [esp + 0x2c], eax
mov edx, dword [esi + 0x30]
mov dword [esp + 0x30], edx
mov ebx, 0x8007000e
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov byte [esp + 0x148], 1
mov ecx, dword [esp + 0x80]
sub ecx, dword [esp + 0x7c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4bab0a
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x78], eax
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x148], 2
lea esi, [ecx + 0x64]
cmp ebx, 0x8007000e
jne 0x4baab1
cmp esi, 0x2710
jae 0x4baaad
xor ecx, ecx
mov eax, esi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00547a7c
mov ebx, eax
add esp, 4
cmp ebp, ebx
je 0x4baa45
push ebp
call fcn.00549081
mov ebp, ebx
add esp, 4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x50], 0
movzx eax, byte [edi + 8]
and eax, 1
shl eax, 0x15
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x50], eax
mov word [esp + 0x18], cx
cmp byte [edi + 8], cl
setne dl
and dx, 0x1f
mov word [esp + 0x18], dx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
lea edx, [esp + 0x44]
push edx
push ebp
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x5c]
push edx
sub eax, ecx
lea edx, [esi - 1]
push edx
push eax
mov eax, dword [esp + 0x44]
lea ecx, [eax + ecx*2]
push ecx
call dword [sym.imp.USP10.dll_ScriptItemize]
mov ebx, eax
add esi, esi
cmp ebx, 0x8007000e
je 0x4baa09
mov ecx, dword [esp + 0x44]
xor eax, eax
test ecx, ecx
jle 0x4baacf
jmp 0x4baac0
mov edx, dword [edi]
add dword [ebp + eax*8], edx
mov ecx, dword [esp + 0x44]
inc eax
cmp eax, ecx
jl 0x4baac0
mov edx, dword [esp + 0x58]
lea eax, [ebp + ecx*8]
mov ecx, dword [esp + 0x1c]
push ecx
push eax
push ebp
push edx
lea esi, [esp + 0x64]
call fcn.004bec60
push ebp
mov byte [esp + 0x14c], 1
call fcn.00549081
add esp, 4
add edi, 0xc
dec dword [esp + 0x78]
jne 0x4ba9e6
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x54]
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
cmp ecx, edi
jae 0x4bab5c
mov edx, ecx
cmp ebx, edx
ja 0x4bab5c
mov esi, ecx
sub esi, ebx
sar esi, 3
cmp edi, ebp
jne 0x4bab4a
lea eax, [esp + 0x54]
call fcn.004be470
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
test edi, edi
je 0x4bab7e
mov eax, dword [ebx + esi*8]
mov dword [edi], eax
mov ecx, dword [ebx + esi*8 + 4]
mov dword [edi + 4], ecx
jmp 0x4bab7e
cmp edi, ebp
jne 0x4bab71
lea eax, [esp + 0x54]
call fcn.004be470
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
test edi, edi
je 0x4bab7e
mov edx, dword [esp + 0x1c]
mov dword [edi], edx
mov dword [edi + 4], esi
add edi, 8
mov dword [esp + 0x58], edi
cmp ebx, edi
jne 0x4bab9f
mov byte [esp + 0x148], 0
test ebx, ebx
je 0x4bb6cb
push ebx
jmp 0x4bb6c3
mov eax, dword [esp + 0x30]
push eax
call fcn.00547a7c
mov ebp, dword [esp + 0x18]
mov esi, eax
mov eax, dword [ebp + 0x100]
add esp, 4
cmp eax, esi
je 0x4babcb
push eax
call fcn.00549081
add esp, 4
mov dword [ebp + 0x100], esi
sub edi, ebx
sar edi, 3
lea ebp, [edi - 1]
xor esi, esi
mov dword [esp + 0x30], edi
test ebp, ebp
je 0x4bac37
mov edi, dword [sym.imp.USP10.dll_ScriptBreak]
mov ebx, dword [esp + 0x2c]
jmp 0x4babf0
mov edx, dword [esp + 0x54]
mov eax, dword [edx + esi*8]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x100]
add ecx, eax
push ecx
lea ecx, [edx + esi*8 + 4]
mov edx, dword [edx + esi*8 + 8]
push ecx
sub edx, eax
push edx
lea eax, [ebx + eax*2]
push eax
call edi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x100]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + esi*8]
or byte [edx + ecx], 8
lea eax, [edx + ecx]
inc esi
cmp esi, ebp
jb 0x4babf0
mov edi, dword [esp + 0x30]
xor ebp, ebp
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
xor eax, eax
mov byte [esp + 0x148], 3
mov dword [esp + 0x2c], eax
test edi, edi
je 0x4baddd
mov dword [esp + 0x20], 2
jmp 0x4bac74
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x54]
mov ebx, dword [edx + eax*8]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
cmp eax, esi
jae 0x4bad3d
mov ecx, eax
cmp ebp, ecx
ja 0x4bad3d
mov edi, dword [esp + 0x3c]
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp esi, edi
jne 0x4bad19
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x15555554
ja 0x4baeba
mov edx, edi
sub edx, ebp
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x4bad19
mov edx, eax
shr edx, 1
mov esi, 0x15555555
sub esi, edx
cmp esi, eax
jae 0x4bacff
xor eax, eax
jmp 0x4bad01
add eax, edx
cmp eax, ecx
jae 0x4bad07
mov eax, ecx
push eax
lea esi, [esp + 0x38]
call fcn.00518a40
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
lea edx, [ebx + ebx*2]
lea eax, [ebp + edx*4]
test esi, esi
je 0x4badbf
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
jmp 0x4badbf
mov edi, dword [esp + 0x3c]
cmp esi, edi
jne 0x4badab
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x15555554
ja 0x4baeba
mov edx, edi
sub edx, ebp
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x4badab
mov edx, eax
shr edx, 1
mov esi, 0x15555555
sub esi, edx
cmp esi, eax
jae 0x4bad91
xor eax, eax
jmp 0x4bad93
add eax, edx
cmp eax, ecx
jae 0x4bad99
mov eax, ecx
push eax
lea esi, [esp + 0x38]
call fcn.00518a40
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
test esi, esi
je 0x4badbf
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov eax, dword [esp + 0x2c]
inc eax
add esi, 0xc
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x30]
jb 0x4bac70
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x40]
sub ecx, dword [edi + 0x3c]
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], 0
je 0x4bb125
mov dword [esp + 0x44], 0
mov eax, dword [edi + 0x3c]
mov edx, dword [esp + 0x44]
mov ecx, dword [eax + edx + 0xb4]
sub ecx, dword [eax + edx + 0xb0]
je 0x4bb0f6
mov edi, dword [eax + edx + 0xb0]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], edx
cmp eax, esi
jae 0x4baf03
mov ecx, eax
cmp ebp, ecx
ja 0x4baf03
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp esi, ebx
jne 0x4baee2
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x15555554
ja 0x4baeba
mov edx, ebx
sub edx, ebp
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x4baee2
mov edx, eax
shr edx, 1
mov esi, 0x15555555
sub esi, edx
cmp esi, eax
jae 0x4baec4
xor eax, eax
jmp 0x4baec6
push 0x5d88f8
call fcn.005479c1
add eax, edx
cmp eax, ecx
jae 0x4baecc
mov eax, ecx
push eax
lea esi, [esp + 0x38]
call fcn.00518a40
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
lea edx, [edi + edi*2]
lea eax, [ebp + edx*4]
test esi, esi
je 0x4baf81
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
jmp 0x4baf81
cmp esi, ebx
jne 0x4baf6d
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x15555554
ja 0x4baeba
mov edx, ebx
sub edx, ebp
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x4baf6d
mov edx, eax
shr edx, 1
mov esi, 0x15555555
sub esi, edx
cmp esi, eax
jae 0x4baf4f
xor eax, eax
jmp 0x4baf51
add eax, edx
cmp eax, ecx
jae 0x4baf57
mov eax, ecx
push eax
lea esi, [esp + 0x38]
call fcn.00518a40
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
test esi, esi
je 0x4baf81
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi], edi
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x3c]
add eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
mov edi, dword [eax + 0xb4]
add esi, 0xc
lea edx, [esp + 0x64]
mov dword [esp + 0x38], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], ecx
cmp edx, esi
jae 0x4bb069
mov eax, edx
cmp ebp, eax
ja 0x4bb069
mov ecx, edx
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp esi, ebx
jne 0x4bb045
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x15555554
ja 0x4baeba
mov edx, ebx
sub edx, ebp
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x4bb045
mov edx, eax
shr edx, 1
mov esi, 0x15555555
sub esi, edx
cmp esi, eax
jae 0x4bb027
xor eax, eax
jmp 0x4bb029
add eax, edx
cmp eax, ecx
jae 0x4bb02f
mov eax, ecx
push eax
lea esi, [esp + 0x38]
call fcn.00518a40
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
lea ecx, [edi + edi*2]
lea eax, [ebp + ecx*4]
test esi, esi
je 0x4bb0eb
mov edx, dword [eax]
mov dword [esi], edx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
jmp 0x4bb0eb
cmp esi, ebx
jne 0x4bb0d7
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x15555554
ja 0x4baeba
mov edx, ebx
sub edx, ebp
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x4bb0d7
mov edx, eax
shr edx, 1
mov esi, 0x15555555
sub esi, edx
cmp esi, eax
jae 0x4bb0b9
xor eax, eax
jmp 0x4bb0bb
add eax, edx
cmp eax, ecx
jae 0x4bb0c1
mov eax, ecx
push eax
lea esi, [esp + 0x38]
call fcn.00518a40
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
test esi, esi
je 0x4bb0eb
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov edi, dword [esp + 0x14]
add esi, 0xc
mov dword [esp + 0x38], esi
mov ecx, dword [edi + 0x40]
sub ecx, dword [edi + 0x3c]
inc dword [esp + 0x18]
add dword [esp + 0x44], 0xb8
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x4bae10
cmp ebp, esi
je 0x4bb193
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + 1]
cdq
sub eax, edx
xor edi, edi
sar eax, 1
lea edx, [esp + 0x64]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
push 0x4ba440
mov eax, edx
push eax
push ecx
push esi
push ebp
mov byte [esp + 0x15c], 4
call fcn.004bee00
mov byte [esp + 0x15c], 3
mov eax, dword [esp + 0x78]
add esp, 0x14
cmp eax, edi
je 0x4bb193
push eax
call fcn.00548a36
add esp, 4
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
lea ecx, [esp + 0x8c]
mov byte [esp + 0x148], 5
call fcn.00485f20
xor eax, eax
mov dword [esp + 0x30], eax
mov byte [esp + 0x148], 6
mov dword [esp + 0x44], eax
sub esi, ebp
mov eax, 0x2aaaaaab
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x78], eax
je 0x4bb60b
mov ecx, dword [esp + 0x54]
add ecx, 0xfffffffc
mov dword [esp + 0x18], ebp
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
cmp dword [eax], edx
jle 0x4bb558
push 0x108
call fcn.00548a50
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
xor edi, edi
mov byte [esp + 0x148], 7
cmp esi, edi
je 0x4bb27d
mov ecx, esi
call fcn.00485f20
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xfc], edi
mov byte [esi + 0x100], 0
jmp 0x4bb27f
xor esi, esi
mov byte [esp + 0x148], 6
lea edi, [esp + 0x8c]
mov dword [esp + 0x2c], esi
call fcn.0046aa00
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
lea ecx, [ebx + 0x50]
mov dword [esi + 0xa8], ecx
mov dword [esi + 0xb0], edx
mov ecx, dword [eax]
mov edx, dword [esp + 0x50]
mov dword [esi + 0xb4], ecx
mov eax, dword [edx]
mov dword [esi + 0xd0], eax
mov ecx, dword [ebx + 0x14]
sub ecx, dword [ebx + 0x10]
test ecx, 0xfffffffc
je 0x4bb305
mov eax, dword [ebx + 0x14]
mov edi, dword [eax - 4]
push esi
call fcn.004b9970
add esp, 4
test al, al
jne 0x4bb305
mov eax, dword [ebx + 0x14]
mov eax, dword [eax - 4]
mov edx, 0x2000
or word [eax + 0xd0], dx
mov eax, 0x1000
or word [esi + 0xd0], ax
mov ecx, dword [esi + 0xa4]
shr ecx, 8
test cl, 1
je 0x4bb318
mov eax, dword [esi + 0x3c]
jmp 0x4bb327
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x4bb372
call fcn.004882b0
cmp eax, 1
je 0x4bb372
fldz
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x13c]
fst qword [esp + 0x44]
lea edx, [esp + 0x44]
fstp qword [esp + 0x1c]
push edx
lea ebx, [esp + 0x20]
call fcn.004b9cd0
fld qword [esp + 0x20]
or dword [esi + 0xa4], 2
fstp qword [esi + 0x20]
fld qword [esp + 0x48]
add esp, 4
call fcn.005a8790
mov ebx, dword [esp + 0x14]
mov dword [esi + 0xc4], eax
mov eax, dword [ebx + 0x14]
lea ecx, [esp + 0x2c]
cmp ecx, eax
jae 0x4bb478
mov edx, dword [ebx + 0x10]
cmp edx, ecx
ja 0x4bb478
mov esi, ecx
mov ecx, dword [ebx + 0x18]
sub esi, edx
sar esi, 2
mov dword [esp + 0x1c], esi
cmp eax, ecx
jne 0x4bb45a
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x4baeba
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x4bb45a
mov edi, ecx
mov edx, edi
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, edi
jae 0x4bb3d5
xor edi, edi
jmp 0x4bb3d7
add edi, edx
cmp edi, eax
jae 0x4bb3dd
mov edi, eax
cmp edi, 0x3fffffff
ja 0x4baeba
cmp ecx, edi
jae 0x4bb45a
xor ebx, ebx
test edi, edi
je 0x4bb40d
lea edx, [edi*4]
push edx
call fcn.00548a50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4bb70f
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
sub eax, ecx
sar eax, 2
add eax, eax
add eax, eax
push eax
push ecx
push ebx
call fcn.00548cc0
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
sub esi, eax
add esp, 0xc
sar esi, 2
test eax, eax
je 0x4bb443
push eax
call fcn.00548a36
add esp, 4
mov eax, dword [esp + 0x14]
lea edx, [ebx + esi*4]
mov esi, dword [esp + 0x1c]
lea ecx, [ebx + edi*4]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x10]
lea esi, [eax + esi*4]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x4bb46f
mov edx, dword [esi]
mov dword [eax], edx
add dword [ecx + 0x14], 4
jmp 0x4bb558
mov ecx, dword [ebx + 0x18]
cmp eax, ecx
jne 0x4bb547
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x10]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x4baeba
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x4bb547
mov ebx, ecx
mov edx, ebx
shr edx, 1
mov edi, 0x3fffffff
sub edi, edx
cmp edi, ebx
jae 0x4bb4bd
xor ebx, ebx
jmp 0x4bb4bf
add ebx, edx
cmp ebx, eax
jae 0x4bb4c5
mov ebx, eax
cmp ebx, 0x3fffffff
ja 0x4baeba
cmp ecx, ebx
jae 0x4bb547
xor ebp, ebp
test ebx, ebx
je 0x4bb4f5
lea eax, [ebx*4]
push eax
call fcn.00548a50
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4bb730
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
push edx
push ecx
push ebp
call fcn.00548cc0
mov eax, dword [edi + 0x10]
mov edi, dword [edi + 0x14]
sub edi, eax
add esp, 0xc
sar edi, 2
test eax, eax
je 0x4bb52e
push eax
call fcn.00548a36
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [ebp + ebx*4]
lea edx, [ebp + edi*4]
mov dword [eax + 0x10], ebp
mov ebp, dword [esp + 0x34]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4bb554
mov dword [ecx], esi
add dword [eax + 0x14], 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, 0
mov dword [esp + 0x44], ecx
je 0x4bb5bb
dec eax
je 0x4bb577
dec eax
jne 0x4bb5eb
add dword [esp + 0x50], 8
jmp 0x4bb5eb
mov ebx, dword [esp + 0x68]
lea edi, [ebx - 0xb0]
lea esi, [esp + 0x8c]
call fcn.0046aa00
cmp dword [esp + 0x64], ebx
je 0x4bb5eb
cmp dword [edi + 0x14], 0x10
jb 0x4bb5a4
mov eax, dword [edi]
push eax
call fcn.00548a36
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov dword [esp + 0x68], edi
jmp 0x4bb5eb
lea ecx, [esp + 0x8c]
lea ebx, [esp + 0x64]
call fcn.004be280
mov edx, dword [esp + 0x18]
mov edi, dword [edx + 8]
mov eax, dword [esp + 0x14]
imul edi, edi, 0xb8
add edi, dword [eax + 0x3c]
lea esi, [esp + 0x8c]
call fcn.00486a20
mov eax, dword [esp + 0x30]
add dword [esp + 0x18], 0xc
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x78]
jb 0x4bb1f4
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x148], 5
cmp dword [esp + 0xa0], 0x10
mov byte [ecx + 0x138], 0
jb 0x4bb638
mov edx, dword [esp + 0x8c]
push edx
call fcn.00548a36
add esp, 4
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], 0
mov byte [esp + 0x8c], 0
mov byte [esp + 0x148], 3
test ebx, ebx
je 0x4bb69d
mov esi, ebx
cmp ebx, edi
je 0x4bb694
cmp dword [esi + 0x14], 0x10
jb 0x4bb679
mov eax, dword [esi]
push eax
call fcn.00548a36
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0xb0
cmp esi, edi
jne 0x4bb668
push ebx
call fcn.00548a36
add esp, 4
mov byte [esp + 0x148], 1
test ebp, ebp
je 0x4bb6b2
push ebp
call fcn.00548a36
add esp, 4
mov byte [esp + 0x148], 0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4bb6cb
push eax
call fcn.00548a36
add esp, 4
mov dword [esp + 0x148], 0xffffffff
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4bb6e7
push eax
call fcn.00548a36
add esp, 4
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00548a41
add esp, 0x138
ret
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 8
call fcn.00404df0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 9
call fcn.00404df0
int3