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

Disassembly:
sub esp, 0xbb0
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0xffffffffffffffff
call fcn.004ceb90
mov eax, dword [esp + 0xbcc]
add esp, 4
lea edi, [ebx + 0xbc]
mov dword [esp + 0x90], 0x7f84
push eax
mov ecx, edi
mov dword [esp + 0xb8], 0xffffffff
mov dword [esp + 0xc8], 1
mov word [esp + 0xd4], 5
mov dword [esp + 0xbc], edi
call fcn.00485250
mov esi, dword [esp + 0xbd0]
mov ecx, ebx
push esi
mov ebp, eax
call fcn.004af4b0
mov ax, word [ebx + 0x5d2]
mov cx, word [ebx + 0x444]
mov dx, word [ebx + 0x5bc]
mov word [esp + 0x70], ax
mov eax, dword [ebx + 0x3f4]
mov word [esp + 0xa0], cx
mov ecx, dword [ebx + 0x3f8]
mov word [esp + 0x64], dx
mov edx, dword [ebx + 0x3fc]
mov dword [esp + 0xac], eax
mov ax, word [ebp + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0xbd4]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0xbec]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xbe8]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0xbe4]
mov dword [edx], 0
mov edx, dword [esp + 0xbe0]
mov dword [eax], 0
mov eax, dword [esp + 0xbdc]
mov dword [ecx], 0
push eax
mov ecx, ebx
mov dword [edx], 0
call fcn.00481a50
mov cx, word [eax + 0x14]
mov eax, dword [esp + 0x48]
cmp esi, eax
mov word [esp + 0xf8], cx
jne 0x48a489
mov eax, dword [ebx + 0x394]
test eax, eax
jne 0x48a489
push 0
push esi
push esi
mov ecx, ebx
call fcn.0049e6d0
mov eax, dword [ebx + 0x394]
test eax, eax
je 0x48a489
mov edx, dword [esp + 0xbdc]
mov ecx, ebx
push edx
mov dword [esp + 0xbd8], 0
call fcn.00481a50
mov ecx, dword [ebx + 0x5b8]
mov edx, dword [esp + 0xbc8]
mov eax, dword [eax + 4]
mov dword [esp + 0x7c], ecx
push edx
mov ecx, edi
mov dword [esp + 0xbdc], eax
call fcn.00485270
xor eax, eax
mov ax, word [ebp + 6]
mov ebp, dword [esp + 0xbc8]
mov ecx, eax
xor eax, eax
mov ax, word [ebx + 0x3ba]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
shl edx, 1
lea eax, [edx + ecx*8 + 8]
mov ecx, edi
push eax
push ebp
call fcn.00453e40
push ebp
mov ecx, edi
call fcn.00485250
mov ebp, eax
mov ax, word [ebx + 0x3ba]
test ax, ax
mov dword [esp + 0x18], 0
jbe 0x48a366
mov cx, word [ebx + 0x3b4]
imul cx, ax
add cx, word [ebx + 0x3bc]
mov eax, dword [esp + 0x18]
add ecx, eax
push ecx
mov ecx, ebx
call fcn.00488030
mov edi, eax
mov ecx, ebx
push edi
call fcn.00481a50
mov edx, dword [esp + 0xbc8]
mov ecx, dword [esp + 0xbc4]
mov dword [eax + 0x10], edx
lea eax, [esp + 0x50]
push eax
push 0
push 0x489ce0
push 0
push ecx
mov ecx, ebx
mov dword [esp + 0x64], edi
call fcn.0049a3e0
push esi
mov ecx, ebx
call fcn.004af4b0
push edi
call fcn.0048feb0
push edi
mov dword [esp + 0x40], eax
call fcn.00481a40
push eax
call fcn.004a0780
mov ecx, eax
add esp, 0xc
and ecx, 0xffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x8c], ecx
dec ecx
imul ecx, dword [esp + 0x7c]
test ax, ax
mov dword [esp + 0x28], ecx
jbe 0x48a1d0
xor eax, eax
mov ecx, dword [ebx + 0x3e4]
mov ax, word [ebx + 0x3be]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x18]
and edx, 0xffff
mov eax, dword [ecx + eax*4 + 0xc]
mov ecx, dword [esp + 0x28]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x8c]
add ecx, dword [eax]
add eax, 4
dec edx
jne 0x48a1c8
mov dx, word [ebp + 4]
push edi
mov eax, edx
and eax, 0xffff
inc edx
mov word [ebp + 4], dx
xor edx, edx
mov dx, word [ebp + 6]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [ebp + eax*2]
lea eax, [eax + edx*8 + 8]
mov edx, dword [esp + 0xbd8]
mov dword [eax + 8], edx
add edx, ecx
mov dword [eax + 0x16], 0
mov dword [eax + 0x12], 0
mov word [eax + 2], 0
mov word [eax + 6], 0
mov word [eax + 4], 0
mov word [eax], 0x7f87
mov word [eax + 0x10], 0
mov dword [esp + 0xbd8], edx
mov dword [eax + 0xc], edx
call fcn.004952e0
add esp, 4
mov ecx, ebx
push eax
call fcn.00487210
push eax
call fcn.004952e0
add esp, 4
mov ecx, ebx
push eax
call fcn.004af4b0
cmp word [ebx + 0x5c6], 0
je 0x48a274
mov ecx, dword [ebx + 0x5de]
mov edx, dword [esp + 0x38]
lea eax, [edx + ecx*2]
mov dword [esp + 0x38], eax
jmp 0x48a278
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xbe0]
cmp dword [ecx], eax
jge 0x48a285
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, eax
add eax, 0xffff
mov cx, ax
add eax, 0xffff
test cx, cx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
je 0x48a340
and eax, 0xffff
inc eax
xor edx, edx
mov dword [esp + 0x10], eax
mov cx, word [ebp + 4]
mov eax, ecx
and eax, 0xffff
inc ecx
mov word [ebp + 4], cx
xor ecx, ecx
mov cx, word [ebp + 6]
lea eax, [eax + eax*2]
cmp word [ebx + 0x5d2], dx
lea eax, [eax + eax*4]
lea eax, [ebp + eax*2]
lea eax, [eax + ecx*8 + 8]
je 0x48a30d
mov edi, dword [esp + 0x18]
xor ecx, ecx
mov cx, word [ebx + 0x3ba]
and edi, 0xffff
dec ecx
cmp edi, ecx
jge 0x48a30d
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0xbd4]
add ecx, edi
jmp 0x48a314
mov ecx, dword [esp + 0xbd4]
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x16], edx
mov dword [eax + 0x12], edx
mov word [eax + 2], dx
mov word [eax + 6], dx
mov word [eax + 4], dx
mov word [eax], 0x7f87
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x48a2b9
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0xbd4]
mov ax, word [ebx + 0x3ba]
add edi, edx
cmp word [esp + 0x18], ax
mov dword [esp + 0xbd4], edi
jb 0x48a0ff
xor eax, eax
mov ax, word [ebp + 6]
lea edi, [ebp + eax*8 + 8]
xor eax, eax
mov ax, word [ebx + 0x5d0]
sub eax, 0
je 0x48a3db
dec eax
je 0x48a3b5
dec eax
jne 0x48a410
mov eax, dword [esp + 0xbd8]
mov ecx, dword [edi + 8]
sub eax, ecx
xor ecx, ecx
mov cx, word [ebp + 4]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
mov edx, dword [edi + ecx*2 - 0x12]
mov ecx, dword [ebx + 0x5e2]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
sub eax, ecx
jmp 0x48a3e1
mov eax, dword [edi + 8]
mov ecx, dword [ebx + 0x5e2]
mov edx, dword [esp + 0xbd8]
sub eax, ecx
xor ecx, ecx
add eax, edx
mov cx, word [ebp + 4]
lea ecx, [ecx + ecx*2]
lea edx, [ecx + ecx*4]
sub eax, dword [edi + edx*2 - 0x12]
jmp 0x48a3e1
mov eax, dword [ebx + 0x5e2]
test eax, eax
je 0x48a410
xor edx, edx
cmp word [ebx + 0x3ba], dx
jbe 0x48a410
lea ecx, [edi + 0xc]
mov edi, dword [ecx - 4]
add ecx, 0x1e
add edi, eax
mov dword [ecx - 0x22], edi
mov edi, dword [ecx - 0x1e]
add edi, eax
inc edx
mov dword [ecx - 0x1e], edi
cmp dx, word [ebx + 0x3ba]
jb 0x48a3f3
mov cx, word [ebx + 0x3b4]
mov eax, dword [esp + 0xbd8]
inc cx
mov dword [esp + 0xa0], 0
imul cx, word [ebx + 0x3ba]
add cx, word [ebx + 0x3bc]
mov dword [esp + 0xbd4], eax
dec ecx
push ecx
mov ecx, ebx
call fcn.0048fa90
mov dx, word [ebx + 0x3ba]
mov ecx, ebx
imul dx, word [ebx + 0x3b4]
add dx, word [ebx + 0x3bc]
mov edi, eax
push edx
call fcn.0048f9d0
sub edi, eax
mov ecx, ebx
add esi, edi
mov dword [esp + 0xbd0], esi
call fcn.0049eb50
push esi
mov ecx, ebx
call fcn.004af4b0
jmp 0x48ba25
mov eax, dword [ebx + 0x400]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x50], eax
xor eax, eax
lea ecx, [ebx + 0xc8]
push edx
mov dword [esp + 0x60], eax
mov dword [esp + 0xa8], 0xffff
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x48], 0xffffffff
call fcn.00485250
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x30], eax
sub eax, ecx
mov dword [esp + 0xe0], 0
mov dword [esp + 0x98], eax
jmp 0x48a4ef
mov edi, dword [esp + 0xb8]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0xe0]
add eax, esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
mov cl, byte [eax]
mov eax, dword [ebx + 0x400]
cmp edx, eax
mov byte [esp + 0x3c], cl
je 0x48a553
cmp cl, 3
je 0x48a553
mov edx, dword [esp + 0xbc4]
push 0
lea ecx, [esp + 0xe8]
push 0
push ecx
mov dword [esp + 0xec], eax
mov eax, dword [0x6559e0]
push ebx
push 0x3e8
push edx
call dword [eax + 0x1ee]
mov cl, byte [esp + 0x54]
add esp, 0x18
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x8c], 0
and eax, 0xff
mov dword [esp + 0x20], 1
mov dword [esp + 0x10], eax
add eax, 0xfffffffe
cmp eax, 0x79
ja case.0x48a587.7
xor edx, edx
mov dl, byte [eax + 0x48c648]
jmp dword [edx*4 + 0x48c630]
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x48a5cc
lea eax, [eax + eax*2]
xor ecx, ecx
mov cx, word [ebp + 6]
lea eax, [eax + eax*4]
shl eax, 1
lea edx, [eax + ecx*8]
mov ecx, dword [esp + 0xbd4]
mov dword [edx + ebp + 0x14], ecx
mov ecx, dword [esp + 0xbcc]
mov edx, esi
sub edx, ecx
xor ecx, ecx
mov cx, word [ebp + 6]
lea eax, [eax + ecx*8]
mov word [eax + ebp + 0xe], dx
mov cx, word [ebp + 4]
mov eax, ecx
and eax, 0xffff
inc ecx
mov dword [esp + 0x44], eax
mov word [ebp + 4], cx
mov cx, word [ebp + 6]
lea eax, [eax + eax*2]
shl cx, 3
lea edx, [eax + eax*4]
mov eax, dword [esp + 0xbc8]
shl edx, 1
push eax
lea ebp, [ecx + edx + 0x26]
mov ecx, edi
call fcn.00485270
and ebp, 0xffff
mov ecx, edi
push ebp
mov ebp, dword [esp + 0xbcc]
push ebp
call fcn.00453e40
push ebp
mov ecx, edi
call fcn.00485250
mov ebp, eax
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov cx, word [ebp + 6]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
lea eax, [ebp + edx*2]
lea edi, [eax + ecx*8 + 8]
mov ecx, dword [esp + 0xbd4]
xor eax, eax
cmp word [esp + 0xa0], 3
mov dword [edi + 8], ecx
mov dword [edi + 0x16], eax
mov dword [edi + 0x12], eax
mov word [edi + 2], ax
jne 0x48a66d
xor edx, edx
cmp word [esp + 0x64], dx
setne dl
mov dword [esp + 0xa0], edx
mov eax, dword [esp + 0xbcc]
mov ecx, esi
sub ecx, eax
inc esi
mov edx, esi
mov word [edi + 4], cx
mov ecx, dword [esp + 0xbc4]
sub edx, eax
mov eax, dword [esp + 0x44]
mov word [edi], 0x7f80
push eax
push ebp
push 0
mov word [edi + 6], dx
mov edx, dword [0x6559e0]
push ebx
push 0x3e8
push ecx
mov dword [esp + 0x80], esi
call dword [edx + 0x1ee]
mov eax, dword [esp + 0xbdc]
push 1
push 0
push 1
push 0x506374
push eax
call fcn.00409aa0
mov ecx, dword [edi + 8]
add esp, 0x2c
add eax, ecx
mov word [edi], 0x7f03
mov dword [edi + 0xc], eax
mov dword [esp + 0x8c], 1
jmp case.default.0x48a864
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x48a731
lea eax, [eax + eax*2]
xor ecx, ecx
mov cx, word [ebp + 6]
mov dword [esp + 0x44], 0xffffffff
lea eax, [eax + eax*4]
shl eax, 1
lea edx, [eax + ecx*8]
mov ecx, dword [esp + 0xbd4]
mov dword [edx + ebp + 0x14], ecx
mov ecx, dword [esp + 0xbcc]
mov edx, esi
sub edx, ecx
xor ecx, ecx
mov cx, word [ebp + 6]
lea eax, [eax + ecx*8]
mov word [eax + ebp + 0xe], dx
mov ax, word [ebp + 4]
mov cx, word [ebp + 6]
mov dword [esp + 0xa4], eax
inc eax
mov word [ebp + 4], ax
inc cx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0xbc8]
shl edx, 1
push eax
lea ebp, [edx + ecx*8]
mov ecx, edi
call fcn.00485270
and ebp, 0xffff
mov ecx, edi
push ebp
mov ebp, dword [esp + 0xbcc]
push ebp
call fcn.00453e40
push ebp
mov ecx, edi
call fcn.00485250
mov ebp, eax
mov eax, dword [esp + 0xa4]
and eax, 0xffff
xor ecx, ecx
mov cx, word [ebp + 6]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
lea eax, [ebp + edx*2]
lea edx, [ebx + 0x434]
lea edi, [eax + ecx*8 + 8]
mov eax, dword [esp + 0xbd4]
lea ecx, [esp + 0xcc]
push ecx
push edx
push eax
call fcn.00489c30
mov word [edi + 0x10], ax
mov ecx, dword [esp + 0xd8]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0xbe0]
mov dword [edi + 8], ecx
mov dx, word [ebp + 4]
mov word [esp + 0x80], dx
mov edx, dword [esp + 0xbd8]
mov eax, esi
add esp, 0xc
sub eax, edx
mov edx, dword [esp + 0xa4]
mov word [edi + 4], ax
mov eax, dword [esp + 0xcc]
sub eax, ecx
mov dword [esp + 0x60], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x80]
add eax, ecx
mov ecx, dword [esp + 0xbcc]
inc esi
mov dword [esp + 0x80], eax
mov eax, esi
sub eax, ecx
mov word [edi], 0x7f00
mov word [edi + 6], ax
mov word [edi + 2], 0
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x78], edx
mov eax, ecx
mov dword [esp + 0xc8], 1
and eax, 0xffff
mov dword [esp + 0x68], esi
cmp eax, 4
ja case.default.0x48a864
jmp dword [eax*4 + 0x48c6c4]
mov dword [esp + 0x5c], 0
jmp case.default.0x48a864
mov eax, dword [esp + 0xcc]
mov dword [esp + 0xd8], ecx
sub eax, dword [esp + 0xbd4]
mov dword [esp + 0x5c], eax
jmp case.default.0x48a864
mov ecx, dword [esp + 0xcc]
mov eax, dword [esp + 0xbd8]
mov dword [esp + 0xd8], 2
lea edx, [ecx + ecx]
sub edx, eax
mov eax, dword [esp + 0xbd4]
push edx
push eax
call fcn.00412550
mov ecx, dword [esp + 0xd4]
add esp, 8
sub ecx, eax
shl ecx, 1
mov dword [esp + 0x5c], ecx
jmp case.default.0x48a864
mov edx, dword [ebx + 0x400]
mov eax, dword [esp + 0xbc4]
lea ecx, [esp + 0x124]
push ecx
push 0x7f40
push edx
push eax
mov ecx, ebx
call fcn.0048e440
test eax, eax
je 0x48aa13
cmp word [esp + 0xf8], 0
jne 0x48a935
lea ecx, [esp + 0x130]
lea edx, [esp + 0xb0]
push ecx
mov ecx, dword [ebx + 0x400]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0xbcc]
push eax
push ecx
push edx
jmp 0x48a959
lea eax, [esp + 0x130]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x400]
lea edx, [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0xbcc]
push edx
push eax
push ecx
call fcn.0045b020
mov eax, dword [ebx + 0x400]
add esp, 0x14
lea edx, [esp + 0x124]
push edx
push eax
call fcn.0048e570
mov eax, dword [ebx + 0x464]
add esp, 8
test eax, eax
jne 0x48a9b2
movsx ecx, word [ebx + 0x46e]
fild dword [esp + 0xb0]
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fmul qword [0x4dc290]
fadd qword [0x4dcaa0]
fdivp st(1)
call fcn.004d7580
mov dword [esp + 0xb0], eax
mov cl, byte [esp + 0x3c]
cmp cl, 0x7b
jne case.0x48a587.2
cmp word [ebx + 0x5f6], 1
je 0x48ab0b
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
sub edx, esi
push 0
dec edx
push edx
push eax
call fcn.004aaa50
add esp, 0xc
mov dword [esp + 0x20], eax
test ax, ax
jne 0x48ab0b
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x100]
push ecx
push edx
call fcn.00485540
add esp, 8
mov dword [esp + 0x20], eax
test ax, ax
jne 0x48aae2
mov byte [esp + 0x3c], 0
cmp dword [esp + 0xb4], esi
jg 0x48aa6f
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x94]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x50]
push eax
push ecx
push edx
push esi
mov ecx, ebx
mov dword [esp + 0x78], esi
call fcn.00489de0
push esi
mov ecx, ebx
mov dword [esp + 0xc8], eax
call fcn.004af4b0
mov ax, word [ebp + 4]
mov word [esp + 0x2c], ax
mov eax, dword [esp + 0x94]
xor ecx, ecx
cmp esi, eax
setl cl
test ecx, ecx
mov dword [esp + 0xc8], ecx
jne 0x48aa8f
mov eax, dword [esp + 0xb4]
mov ecx, dword [ebx + 0x408]
push ecx
push eax
call fcn.00412540
mov edx, dword [ebx + 0x408]
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x5ea]
add esp, 8
mov dword [esp + 0x28], edx
cmp word [eax + 0x1a], 0
jne 0x48ad37
mov ecx, dword [esp + 0x14]
mov edx, dword [0x6559e0]
push 1
push 0
push ecx
push ebx
call dword [edx + 0x212]
add esp, 0x10
mov dword [esp + 0x24], eax
mov ecx, eax
jmp 0x48ad40
mov eax, dword [esp + 0xbc8]
push 1
push eax
call fcn.00486c90
add esp, 8
jmp 0x48ab0b
test cl, cl
je case.0x48a587.7
cmp cl, 2
jne 0x48ab0b
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x20]
mov cx, word [ebp + 4]
mov edx, dword [esp + 0x80]
and eax, 0xffff
add eax, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x44]
mov word [esp + 0x2c], cx
cmp eax, 0xffffffff
mov dword [esp + 0x78], edx
mov dword [esp + 0xc8], 1
je 0x48ab8a
lea eax, [eax + eax*2]
xor ecx, ecx
mov cx, word [ebp + 6]
mov dword [esp + 0x44], 0xffffffff
lea eax, [eax + eax*4]
shl eax, 1
lea edx, [eax + ecx*8]
mov ecx, dword [esp + 0xbd4]
mov dword [edx + ebp + 0x14], ecx
mov ecx, dword [esp + 0xbcc]
mov edx, esi
sub edx, ecx
xor ecx, ecx
mov cx, word [ebp + 6]
lea eax, [eax + ecx*8]
mov word [eax + ebp + 0xe], dx
inc word [ebp + 4]
mov ax, word [ebp + 4]
mov cx, word [ebp + 6]
lea eax, [eax + eax*2]
inc cx
lea edx, [eax + eax*4]
mov eax, dword [esp + 0xbc8]
shl edx, 1
push eax
lea ebp, [edx + ecx*8]
mov ecx, edi
call fcn.00485270
and ebp, 0xffff
mov ecx, edi
push ebp
mov ebp, dword [esp + 0xbcc]
push ebp
call fcn.00453e40
push ebp
mov ecx, edi
call fcn.00485250
mov ebp, eax
xor eax, eax
xor edx, edx
push 0
mov ax, word [ebp + 4]
mov dx, word [ebp + 6]
push 0
push 0
lea eax, [eax + eax*2]
push 0
lea ecx, [eax + eax*4]
lea eax, [ebp + edx*8]
mov edx, esi
lea edi, [eax + ecx*2 - 0x16]
mov ecx, dword [esp + 0xbe4]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], edi
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0xbdc]
sub eax, ecx
sub edx, ecx
add eax, esi
mov word [edi + 4], dx
mov word [edi + 6], ax
mov eax, dword [esp + 0xbd4]
push eax
mov word [edi + 2], 0
call fcn.00409aa0
mov edx, dword [esp + 0x30]
add esp, 0x14
add edx, eax
mov eax, dword [esp + 0x10]
sub eax, 2
mov dword [esp + 0x1c], edx
je 0x48ac79
dec eax
je 0x48ac65
sub eax, 0x78
jne 0x48ad1a
xor eax, eax
mov word [edi], 0x7f04
mov dword [esp + 0x1c], eax
mov dword [edi + 0x1a], eax
jmp 0x48ad1a
mov word [edi], 0x7f02
mov ecx, dword [esp + 0xb0]
mov dword [edi + 0x1a], ecx
jmp 0x48ad1a
mov eax, dword [esp + 0xbdc]
mov edi, dword [ebx]
lea edx, [esp + 0x104]
push 0
push edx
push eax
mov ecx, ebx
call fcn.00481a50
mov ecx, dword [eax + 0x10]
mov edx, edi
mov edi, dword [esp + 0xbcc]
push ecx
push edi
mov ecx, ebx
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x38]
mov word [ecx], ax
mov dx, word [ebp + 4]
mov eax, dword [0x6559e0]
dec dx
push edx
push ebp
push 0
push ebx
push 0x3e8
push edi
call dword [eax + 0x1ee]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0xbdc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x11c]
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push ecx
lea ecx, [esp + 0x128]
push ecx
push edx
call fcn.00409aa0
mov ecx, dword [esp + 0x48]
add esp, 0x2c
add ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov edi, eax
mov word [eax], 0x7f01
mov ecx, dword [esp + 0xbd4]
mov edx, dword [esp + 0x1c]
lea eax, [edx + ecx]
mov dword [edi + 0xc], eax
mov dword [esp + 0x80], eax
jmp case.default.0x48a864
mov ecx, 0x7f800001
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x14]
cmp byte [eax], 0x7b
jne 0x48ad75
mov ecx, dword [esp + 0x54]
push 0
sub ecx, esi
mov edx, eax
dec ecx
push ecx
push edx
call fcn.004aaa50
add esp, 0xc
test ax, ax
je 0x48ad71
and eax, 0xffff
or eax, 0x7f040000
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x68]
mov eax, ecx
and ecx, 0xffff
add ecx, esi
shr eax, 0x10
cmp ecx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
jge 0x48ae83
mov ecx, dword [ebx + 0x5ea]
cmp word [ecx + 0x1a], 0
jne 0x48adcf
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x30]
sub edx, ecx
mov ecx, dword [0x6559e0]
push 1
push edx
push eax
push ebx
call dword [ecx + 0x212]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
add esp, 0x10
jmp 0x48add7
mov dword [esp + 0x24], 0x7f800001
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
sub edx, ecx
mov ecx, dword [esp + 0x30]
add ecx, edx
cmp byte [ecx], 0x7b
jne 0x48ae1a
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
sub edx, eax
push 0
dec edx
push edx
push ecx
call fcn.004aaa50
add esp, 0xc
test ax, ax
je 0x48ae16
and eax, 0xffff
or eax, 0x7f040000
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x90]
shr ecx, 0x10
cmp cx, ax
je 0x48ae55
cmp ax, 0x7f84
jne 0x48ae49
cmp dx, ax
jne 0x48ae41
mov edx, ecx
mov dword [esp + 0x90], edx
mov eax, edx
mov dword [esp + 0x20], eax
jmp 0x48ae55
cmp cx, 0x7f84
jne 0x48ae55
mov word [esp + 0x24], ax
mov ecx, dword [esp + 0x24]
shr ecx, 0x10
cmp cx, ax
jne 0x48ae8a
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
and ecx, 0xffff
add edx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x68]
cmp dword [esp + 0x14], edx
jl 0x48ad96
mov edx, dword [esp + 0x90]
cmp ax, 0x7f84
jne 0x48aeb0
cmp dx, ax
jne 0x48aeaa
mov dx, word [ebx + 0x5bc]
neg dx
sbb edx, edx
and edx, 3
add edx, 0x7f80
mov eax, edx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x90], eax
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x44]
cmp ecx, 0xffffffff
je 0x48aefe
lea ecx, [ecx + ecx*2]
xor edx, edx
mov dx, word [ebp + 6]
lea ecx, [ecx + ecx*4]
shl ecx, 1
lea edx, [ecx + edx*8 + 8]
add edx, ebp
cmp word [edx], ax
je 0x48afc0
mov eax, dword [esp + 0xbd4]
mov ecx, esi
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0xbcc]
sub ecx, eax
mov word [edx + 6], cx
mov edx, dword [esp + 0xbc4]
push 0
push 0
push 0
push 0
push edx
call fcn.00409aa0
mov ecx, dword [esp + 0x30]
add esp, 0x14
add ecx, eax
mov dword [esp + 0x1c], ecx
mov cx, word [ebp + 4]
mov eax, ecx
and eax, 0xffff
inc ecx
mov dword [esp + 0x44], eax
mov word [ebp + 4], cx
mov cx, word [ebp + 6]
lea eax, [eax + eax*2]
shl cx, 3
lea edx, [eax + eax*4]
mov eax, dword [esp + 0xbc8]
shl edx, 1
push eax
lea ebp, [ecx + edx + 0x26]
mov ecx, edi
call fcn.00485270
and ebp, 0xffff
mov ecx, edi
push ebp
mov ebp, dword [esp + 0xbcc]
push ebp
call fcn.00453e40
push ebp
mov ecx, edi
call fcn.00485250
mov ebp, eax
mov eax, dword [esp + 0x44]
xor edx, edx
mov edi, dword [esp + 0xbcc]
mov dx, word [ebp + 6]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
shl ecx, 1
lea eax, [ecx + edx*8 + 8]
mov edx, dword [esp + 0xbd4]
add eax, ebp
mov dword [eax + 8], edx
mov edx, esi
sub edx, edi
mov di, word [esp + 0x20]
mov word [eax + 4], dx
xor edx, edx
mov dword [eax + 0x16], edx
mov dword [eax + 0x12], edx
mov word [eax], di
mov word [eax + 0x10], dx
mov word [eax + 2], dx
mov edx, dword [esp + 0x44]
xor eax, eax
mov ax, word [ebp + 6]
push edx
push ebp
push 0
lea edi, [ecx + eax*8 + 8]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0xbd0]
add edi, ebp
push ebx
push 0x3e8
mov dword [edi + 0xc], ecx
mov ecx, dword [0x6559e0]
push eax
call dword [ecx + 0x1ee]
mov dx, word [edi + 4]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0xbe4]
mov di, dx
mov dword [esp + 0xf4], edx
sub ecx, edi
add esp, 0x18
mov edx, esi
sub ecx, eax
sub edx, edi
push ecx
mov ecx, dword [esp + 0x58]
sub edx, eax
mov eax, dword [esp + 0x2c]
push edx
dec ecx
push eax
push ecx
call fcn.00412540
mov ecx, dword [esp + 0x58]
mov edx, eax
mov eax, dword [esp + 0xbdc]
sub edx, edi
add esp, 8
sub edx, eax
and edi, 0xffff
push edx
mov edx, dword [esp + 0x3c]
sub edi, ecx
add edi, edx
add edi, eax
mov eax, dword [esp + 0xbd0]
push edi
push eax
call fcn.00409aa0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
add edx, eax
mov eax, dword [esp + 0xa8]
add esp, 0x14
cmp ecx, eax
mov dword [esp + 0x1c], edx
je 0x48b082
cmp eax, dword [esp + 0x60]
jne case.default.0x48a864
mov ecx, dword [esp + 0xbd4]
mov edx, dword [esp + 0x1c]
add edx, ecx
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x48b8ae
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x48b21b
cmp byte [esp + 0x3c], 9
je 0x48b21b
mov ecx, dword [esp + 0xd8]
mov eax, ecx
and eax, 0xffff
dec eax
cmp eax, 3
ja case.default.0x48b0d1
jmp dword [eax*4 + 0x48c6d8]
mov edx, dword [0x6559e0]
mov eax, dword [edx + 0x22e]
test eax, eax
je case.0x48b0d1.1
mov edx, dword [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x6c]
sub ecx, esi
lea edi, [edx + esi]
push ecx
push edi
call eax
mov esi, eax
add esp, 0xc
cmp si, 0xffff
je case.0x48b0d1.1
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0xbc4]
mov ecx, dword [0x6559e0]
push edx
push ebp
push 0
push ebx
push 0x3e8
push eax
call dword [ecx + 0x1ee]
mov edx, dword [esp + 0xbdc]
push esi
push 0
push esi
push edi
push edx
call fcn.00409aa0
mov ecx, dword [esp + 0x88]
push ecx
push eax
call fcn.00412540
add esp, 0x34
mov dword [esp + 0x5c], 0
jmp 0x48b191
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x1c]
push esi
push edx
call fcn.00412540
add esp, 8
sub esi, eax
mov dword [esp + 0x5c], esi
jmp 0x48b191
mov esi, dword [esp + 0x5c]
mov eax, edx
cdq
sub eax, edx
push esi
sar eax, 1
push eax
call fcn.00412540
add esp, 8
sub esi, eax
mov dword [esp + 0x5c], esi
jmp 0x48b191
xor eax, eax
mov edx, dword [esp + 0xa4]
xor ecx, ecx
mov cx, word [ebp + 6]
mov esi, ecx
mov ecx, edx
and ecx, 0xffff
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [ebp + ecx*2]
lea ecx, [ecx + esi*8 + 0x14]
mov esi, dword [ecx]
sub esi, eax
mov dword [ecx], esi
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x80]
sub edi, eax
sub esi, eax
inc edx
mov dword [esp + 0x1c], edi
cmp dx, word [ebp + 4]
mov dword [esp + 0x80], esi
jae 0x48b21b
mov ecx, edx
xor esi, esi
and ecx, 0xffff
mov si, word [ebp + 6]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
shl ecx, 1
lea esi, [ecx + esi*8]
mov edi, dword [esi + ebp + 0x14]
lea esi, [esi + ebp + 0x14]
sub edi, eax
mov dword [esi], edi
xor esi, esi
mov si, word [ebp + 6]
lea ecx, [ecx + esi*8 + 0x10]
add ecx, ebp
mov edi, dword [ecx]
sub edi, eax
inc edx
mov dword [ecx], edi
cmp dx, word [ebp + 4]
jb 0x48b1dd
or eax, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x48b89a
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x48b258
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xbd4]
add edx, eax
mov eax, dword [esp + 0xbd8]
cmp edx, eax
jg 0x48b26e
mov ecx, dword [esp + 0xbd8]
mov eax, dword [esp + 0xbd4]
cmp eax, ecx
jle 0x48b89a
mov ecx, dword [esp + 0x94]
mov edi, dword [esp + 0xbcc]
xor eax, eax
xor edx, edx
mov ax, word [ebp + 4]
mov dx, word [ebp + 6]
sub ecx, edi
lea eax, [eax + eax*2]
lea edx, [ebp + edx*8 + 8]
mov dword [esp + 0x20], edx
lea eax, [eax + eax*4]
mov word [edx + eax*2 - 0x18], cx
xor eax, eax
mov ax, word [ebp + 4]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
cmp word [edx + ecx*2 - 0x1e], 0x7f80
jne 0x48b860
mov edx, dword [ebx + 0x5ea]
cmp word [edx + 0x22], 0
jne 0x48b860
mov di, word [ebx + 0x5d4]
mov esi, dword [esp + 0x94]
xor ecx, ecx
cmp di, 2
mov edx, esi
setne cl
sub edx, dword [esp + 0x60]
add ecx, 5
cmp edx, ecx
jl 0x48b860
mov ecx, dword [esp + 0xc4]
test ecx, ecx
je 0x48b860
test di, di
je 0x48b860
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0xbcc]
sub edi, edx
dec eax
test eax, eax
mov dword [esp + 0x18], edi
jl 0x48b347
mov edx, dword [esp + 0x20]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*2 + 4]
cmp word [ecx - 4], 0x7f80
jne 0x48b347
mov dx, word [ecx]
cmp dx, di
jbe 0x48b347
dec eax
sub ecx, 0x1e
test eax, eax
mov dword [esp + 0x18], edx
jge 0x48b32b
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0xbcc]
and edi, 0xffff
push 0xff
sub esi, edi
mov dword [esp + 0x28], 0
sub esi, ecx
mov dword [esp + 0x44], edi
push esi
call fcn.00412540
add esp, 8
xor esi, esi
test eax, eax
mov dword [esp + 0x38], eax
jle 0x48b3b3
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0xbcc]
sub edi, edx
add edi, ecx
add edi, eax
mov al, byte [edi]
push 0
push eax
call fcn.0041a4a0
add esp, 8
mov byte [esp + esi + 0x140], al
mov eax, dword [esp + 0x38]
inc esi
inc edi
cmp esi, eax
jl 0x48b395
xor edx, edx
mov byte [esp + eax + 0x140], 0
test eax, eax
mov dword [esp + 0x14], edx
jle 0x48b429
lea esi, [esp + edx + 0x140]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], ecx
je 0x48b415
mov ecx, dword [esp + 0x24]
lea edi, [esp + ecx*2 + 0x240]
push edi
push esi
call fcn.0047d640
movsx ecx, ax
test ecx, ecx
jle 0x48b407
mov dl, byte [esp + 0x14]
mov eax, edi
mov esi, ecx
add byte [eax], dl
add eax, 2
dec esi
jne 0x48b3ff
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
lea edx, [edx + eax + 1]
mov eax, dword [esp + 0x38]
cmp edx, eax
mov dword [esp + 0x14], edx
jl 0x48b3c5
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x48b860
lea esi, [esp + 0x240]
mov dword [esp + 0x38], esi
mov al, byte [esi]
cmp al, 0xff
je 0x48b6e8
xor ecx, ecx
xor edx, edx
cmp word [ebx + 0x5d4], 2
mov cl, byte [esi + 1]
sete dl
add edx, 3
cmp ecx, edx
jge 0x48b6e8
mov ecx, dword [esp + 0x18]
push 1
movzx ax, al
lea edx, [eax + ecx + 1]
mov cx, word [ebp + 4]
mov dword [esp + 0x100], edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x100]
add edx, 4
push eax
push 0x1e
push ecx
push edx
call fcn.004123d0
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
xor ecx, ecx
add esp, 0x14
mov cl, byte [esi]
and eax, 0x7fff
sub ecx, edi
mov edi, dword [esp + 0x30]
add ecx, edx
mov edx, dword [esp + 0xbcc]
add ecx, edi
mov dword [esp + 0xdc], eax
mov dword [esp + 0x7c], 0
lea edi, [ecx + edx + 1]
mov cl, byte [ecx + edx + 1]
mov byte [edi], 0x2d
mov byte [esp + 0x8b], cl
mov ecx, dword [esp + 0x2c]
test cx, cx
je 0x48b512
mov edi, dword [esp + 0x20]
and ecx, 0xffff
lea ecx, [ecx + ecx*2]
lea edx, [ecx + ecx*4]
mov cx, word [esp + 0x18]
cmp word [edi + edx*2 - 0x1a], cx
jae 0x48b512
mov edx, 1
jmp 0x48b514
xor edx, edx
mov ecx, dword [esp + 0x2c]
sub ecx, edx
cmp cx, ax
mov dword [esp + 0xc0], ecx
jae 0x48b661
and eax, 0xffff
dec eax
mov dword [esp + 0xf0], eax
mov eax, ecx
and eax, 0xffff
mov dword [esp + 0x58], eax
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x20]
lea edi, [eax + edx*2 + 6]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xbc4]
mov eax, dword [0x6559e0]
push ecx
push ebp
push 0
push ebx
push 0x3e8
push edx
call dword [eax + 0x1ee]
mov edx, dword [esp + 0xbe4]
xor ecx, ecx
mov cx, word [edi - 2]
add ecx, edx
mov edx, dword [esp + 0x78]
push ecx
push edx
call fcn.00412550
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x78]
mov esi, eax
mov eax, dword [esp + 0x68]
sub esi, eax
xor eax, eax
cmp edx, ecx
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
sete al
sub eax, esi
sub eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], eax
movzx ax, byte [edx]
lea edx, [eax + ecx + 1]
mov ax, word [edi]
push edx
push eax
call fcn.00412480
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0xbf4]
add eax, ecx
mov ecx, dword [esp + 0x60]
add esp, 0x28
add eax, edx
movzx dx, byte [ecx]
push eax
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [edx + eax + 1]
mov dx, word [edi]
push ecx
push edx
call fcn.00412480
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0xbdc]
add eax, edx
add esp, 8
add eax, ecx
mov ecx, dword [esp + 0xbcc]
push eax
mov eax, dword [esp + 0x3c]
add esi, eax
push esi
push ecx
call fcn.00409aa0
mov edx, dword [esp + 0x90]
mov esi, dword [esp + 0x6c]
add edx, eax
mov eax, dword [esp + 0xd4]
add esp, 0x14
inc eax
inc esi
add edi, 0x1e
cmp ax, word [esp + 0xdc]
mov dword [esp + 0x7c], edx
mov dword [esp + 0xc0], eax
mov dword [esp + 0x58], esi
jb 0x48b550
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
xor edx, edx
mov dl, byte [esi]
sub edx, eax
mov al, byte [esp + 0x8b]
add edx, edi
add edx, ecx
mov ecx, dword [esp + 0xbcc]
mov byte [edx + ecx + 1], al
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x48b6a7
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xbc], eax
jmp 0x48b6ab
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0xbd8]
cmp edx, ecx
jg 0x48b6ce
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x34], ecx
jmp 0x48b6e8
mov eax, dword [esp + 0xbf0]
test eax, eax
je 0x48b704
mov edx, dword [esp + 0xbcc]
mov eax, dword [esp + 0x60]
cmp eax, edx
jg 0x48b704
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
add esi, 2
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], esi
jl 0x48b448
cmp dword [esp + 0x34], 0xffffffff
je 0x48b860
mov eax, dword [esp + 0xbc8]
push eax
call fcn.0049eaf0
add esp, 4
cmp word [ebx + 0x5d6], 0
mov esi, eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x28], esi
jbe 0x48b7cb
test esi, esi
je 0x48b7cb
push esi
call fcn.00485500
mov ecx, dword [esp + 0xbe0]
mov edi, eax
push ecx
call fcn.004952e0
add esp, 8
cmp edi, eax
jl 0x48b7cb
push esi
mov ecx, ebx
call fcn.00484790
mov di, word [eax + 4]
xor edx, edx
test di, di
jbe 0x48b7a1
xor ecx, ecx
mov cx, word [eax + 6]
lea esi, [ecx*8 + 0x18]
mov ecx, edx
and ecx, 0xffff
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [esi + ecx*2]
test byte [ecx + eax + 1], 0x80
jne 0x48b79d
inc edx
cmp dx, di
jb 0x48b77f
mov esi, dword [esp + 0x28]
cmp dx, di
jae 0x48b7cb
push esi
call fcn.0049eaf0
mov esi, eax
mov eax, dword [esp + 0x5c]
add esp, 4
inc eax
cmp ax, word [ebx + 0x5d6]
mov dword [esp + 0x28], esi
mov dword [esp + 0x58], eax
jb 0x48b73b
mov dx, word [esp + 0x58]
cmp dx, word [ebx + 0x5d6]
jae 0x48b858
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x40]
xor eax, eax
lea edx, [esp + 0xf4]
mov al, byte [esp + ecx*2 + 0x240]
mov ecx, dword [esp + 0xbcc]
add eax, esi
mov esi, dword [esp + 0x20]
push 1
push edx
lea eax, [eax + ecx + 1]
push 0x1e
mov dword [esp + 0x6c], eax
sub eax, ecx
mov dword [esp + 0x100], eax
mov ax, word [ebp + 4]
lea ecx, [esi + 4]
push eax
push ecx
call fcn.004123d0
and eax, 0x7fff
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x40], eax
mov edi, dword [esp + 0x8c]
and eax, 0xffff
add edi, edx
add esp, 0x14
mov dword [esp + 0x78], edi
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
or byte [esi + eax*2 - 0xd], 0x80
lea eax, [esi + eax*2 - 0xe]
jmp 0x48b860
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0xbf0]
test eax, eax
je 0x48b9ae
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0xbcc]
cmp edi, eax
jne 0x48b9a4
cmp dword [esp + 0x34], 0xffffffff
jne 0x48b9a4
mov esi, dword [esp + 0x10]
cmp esi, 0xffffffff
jne 0x48b92f
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xbd4]
add eax, ecx
mov dword [esp + 0xbd4], eax
mov eax, dword [esp + 0x8c]
mov esi, dword [esp + 0x68]
test eax, eax
mov dword [esp + 0xbd0], esi
jne 0x48ba12
mov edi, esi
mov ecx, ebx
push edi
call fcn.004af4b0
mov edx, dword [esp + 0x50]
mov eax, dword [ebx + 0x400]
cmp edx, eax
je 0x48a4e8
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x48b920
lea eax, [eax + eax*2]
xor ecx, ecx
mov cx, word [ebp + 6]
mov dword [esp + 0x44], 0xffffffff
lea edx, [eax + eax*4]
lea eax, [ebp + edx*2]
lea eax, [eax + ecx*8 + 8]
mov ecx, dword [esp + 0xbd4]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0xbcc]
sub edi, ecx
mov word [eax + 6], di
mov edx, dword [ebx + 0x400]
mov dword [esp + 0x50], edx
jmp 0x48a4e8
mov edi, dword [esp + 0x18]
xor ecx, ecx
mov cl, byte [esp + esi*2 + 0x240]
mov edx, eax
mov esi, dword [esp + 0x20]
and edi, 0xffff
add edx, ecx
push 1
lea edi, [edi + edx + 1]
lea edx, [esp + 0xa0]
mov ecx, edi
push edx
sub ecx, eax
mov ax, word [ebp + 4]
mov dword [esp + 0xa4], ecx
push 0x1e
lea ecx, [esi + 4]
push eax
push ecx
call fcn.004123d0
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0xd0]
and eax, 0x7fff
add edx, ecx
mov ecx, eax
add esp, 0x14
and ecx, 0xffff
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
or byte [esi + ecx*2 - 0xd], 0x80
lea ecx, [esi + ecx*2 - 0xe]
jmp 0x48b9ba
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x78]
jmp 0x48b9ba
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x60]
cmp ax, word [esp + 0x6c]
mov esi, edi
mov dword [esp + 0xbd0], esi
mov word [ebp + 4], ax
mov dword [esp + 0xbd4], edx
jbe 0x48ba12
and eax, 0xffff
xor ecx, ecx
mov cx, word [ebp + 6]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [ebp + eax*2]
mov dword [eax + ecx*8 - 0xa], edx
mov eax, dword [esp + 0xbcc]
sub edi, eax
xor ecx, ecx
xor eax, eax
mov cx, word [ebp + 6]
mov ax, word [ebp + 4]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
lea eax, [ebp + edx*2]
mov word [eax + ecx*8 - 0x10], di
mov ecx, dword [esp + 0xac]
push ecx
lea ecx, [ebx + 0xc8]
call fcn.00485270
mov edx, dword [esp + 0xac]
lea ecx, [ebx + 0xc8]
push edx
mov dword [esp + 0xa0], ecx
call fcn.00485250
mov dword [esp + 0x58], eax
mov ax, word [ebp + 4]
cmp ax, word [esp + 0x6c]
jne 0x48baa4
push esi
mov ecx, ebx
call fcn.004af4b0
mov ecx, dword [esp + 0xbc4]
mov edx, dword [0x6559e0]
push 0
lea eax, [esp + 0xe8]
push 0
push eax
push ebx
push 0x3e8
push ecx
call dword [edx + 0x1ee]
mov ecx, dword [esp + 0xbf8]
mov eax, dword [esp + 0xfc]
mov edx, dword [esp + 0x100]
add esp, 0x18
mov dword [ecx], eax
mov eax, dword [esp + 0xbe4]
mov dword [eax], edx
jmp 0x48bbd3
mov edi, dword [esp + 0x6c]
cmp di, ax
jae 0x48bbd3
mov eax, edi
xor ecx, ecx
and eax, 0xffff
mov cx, word [ebp + 6]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
lea eax, [ebp + edx*2]
cmp word [eax + ecx*8 + 8], 0x7f87
lea esi, [eax + ecx*8 + 8]
je 0x48bbd3
mov eax, dword [esp + 0xbcc]
xor ecx, ecx
mov cx, word [esi + 4]
add ecx, eax
push ecx
mov ecx, ebx
call fcn.004af4b0
xor eax, eax
mov ax, word [esi]
sub eax, 0x7f02
je 0x48bb93
dec eax
jne 0x48bb0e
cmp di, word [esp + 0x6c]
jne 0x48bbc8
mov eax, dword [esp + 0xbc4]
mov ecx, dword [0x6559e0]
push 0
lea edx, [esp + 0xe8]
push 0
push edx
push ebx
push 0x3e8
push eax
call dword [ecx + 0x1ee]
mov eax, dword [ebx + 0x5ea]
mov edx, dword [eax]
mov eax, dword [eax + 0x10]
push edx
push eax
call fcn.00409040
add esp, 0x20
test eax, eax
jge 0x48bb5c
mov ecx, dword [esp + 0xbe8]
neg eax
cmp dword [ecx], eax
jge 0x48bb69
jmp 0x48bb67
mov ecx, dword [esp + 0xbec]
cmp dword [ecx], eax
jge 0x48bb69
mov dword [ecx], eax
mov ecx, dword [esp + 0xbe0]
mov eax, dword [esp + 0xe4]
cmp dword [ecx], eax
jge 0x48bb7d
mov dword [ecx], eax
mov ecx, dword [esp + 0xbe4]
mov eax, dword [esp + 0xe8]
cmp dword [ecx], eax
jge 0x48bbc8
mov dword [ecx], eax
jmp 0x48bbc8
mov eax, dword [esi + 0x1a]
mov ecx, dword [esp + 0xbe0]
cdq
sub eax, edx
mov edx, dword [ecx]
sar eax, 1
cmp edx, eax
jge 0x48bbaa
mov dword [ecx], eax
mov eax, dword [esi + 0x1a]
mov ecx, dword [esp + 0xbe4]
cdq
sub eax, edx
mov edx, dword [ecx]
sar eax, 1
cmp edx, eax
jge 0x48bbc1
mov dword [ecx], eax
mov dword [esi + 0x1a], 0
inc edi
cmp di, word [ebp + 4]
jb 0x48bab1
xor ecx, ecx
mov cx, word [ebp + 6]
cmp word [ebp + ecx*8 + 8], 0x7f87
lea ecx, [ebp + ecx*8 + 8]
jne 0x48bbfe
cmp word [esp + 0x70], 1
jne 0x48bc5e
mov dx, word [ebp + 4]
push edx
push ecx
call fcn.00489cf0
add esp, 8
jmp 0x48bc5e
mov esi, dword [esp + 0x6c]
mov dx, word [ebp + 4]
mov eax, esi
sub dx, si
and eax, 0xffff
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*2]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0xbd0]
push edx
mov edx, dword [esp + 0x50]
sub eax, edx
add eax, ecx
mov ecx, dword [0x6559e0]
push eax
lea eax, [ebx + 0x3f4]
push eax
call dword [ecx + 0x20e]
add esp, 0x10
cmp word [esp + 0x64], 1
jne 0x48bc5e
mov dx, word [ebp + 4]
sub dx, word [esp + 0x74]
lea eax, [edx + esi - 1]
mov dword [esp + 0x74], eax
mov cx, word [esp + 0x6c]
mov dword [esp + 0x30], 0
cmp word [ebp + 4], cx
jbe case.default.0x48bd9e
mov edi, dword [esp + 0x6c]
xor edx, edx
mov dx, word [ebp + 6]
and edi, 0xffff
xor eax, eax
mov dword [esp + 0x3c], edi
lea esi, [edi + edi*2]
lea edx, [ebp + edx*8 + 8]
lea esi, [esi + esi*4]
shl esi, 1
or byte [edx + esi + 2], 1
mov ax, word [ebp + 4]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
or byte [edx + eax*2 - 0x1c], 2
mov cx, word [ebp + 4]
lea eax, [edx + eax*2 - 0x1c]
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0xbd8]
cmp dword [esp + 0xbd4], eax
jle 0x48bd89
mov eax, dword [ebx + 0x130]
test eax, eax
jne 0x48bd89
mov eax, dword [esp + 0xbd4]
mov dword [esp + 0x10], 0
sub eax, dword [esp + 0xbd8]
mov dword [esp + 0x70], eax
mov eax, ecx
and eax, 0xffff
cmp edi, eax
jge 0x48bd7b
mov ecx, dword [esp + 0xbd4]
add edx, 0xc
sub ecx, dword [esp + 0x4c]
sub eax, edi
fild dword [esp + 0x70]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x40], edx
fild dword [esp + 0x4c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 4]
mov edx, ecx
sub edx, dword [esp + 0x10]
mov dword [eax - 4], edx
mov eax, dword [eax]
mov dword [esp + 0x70], eax
sub eax, ecx
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
fmul st(2)
fdiv st(1)
call fcn.004d7580
mov ecx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x10], ecx
sub eax, ecx
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, dword [esp + 0x50]
add ecx, 0x1e
dec eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], eax
jne 0x48bd22
mov ecx, dword [esp + 0x2c]
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0xbd8]
mov dword [esp + 0xbd4], eax
mov eax, dword [esp + 0xa0]
and eax, 0xffff
cmp eax, 4
ja case.default.0x48bd9e
jmp dword [eax*4 + 0x48c6e8]
cmp word [esp + 0x64], 1
jne case.default.0x48bd9e
xor edx, edx
mov dx, word [ebp + 6]
lea edx, [ebp + edx*8 + 8]
cmp word [edx + esi], 0x7f03
jne case.default.0x48bd9e
mov eax, dword [edx + esi + 0xc]
mov dword [esp + 0x4c], eax
mov eax, ecx
and eax, 0xffff
cmp edi, eax
jge case.default.0x48bd9e
lea esi, [edx + esi + 0xc]
sub eax, edi
mov ecx, dword [esp + 0x4c]
mov edx, dword [esi - 4]
mov edi, dword [esi]
sub edx, ecx
sub edi, ecx
mov dword [esi - 4], edx
mov dword [esi], edi
add esi, 0x1e
dec eax
jne 0x48bde4
jmp case.default.0x48bd9e
xor edx, edx
cmp word [esp + 0x64], 0
mov dx, word [ebp + 6]
lea edx, [ebp + edx*8 + 8]
mov dword [esp + 0x4c], edx
jne 0x48be39
mov eax, ecx
and eax, 0xffff
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
cmp word [edx + ecx*2 - 0x1e], 0x7f03
lea ecx, [edx + ecx*2]
jne 0x48be35
mov ecx, dword [ecx - 0x16]
jmp 0x48be4a
mov ecx, dword [esp + 0x2c]
mov eax, ecx
and eax, 0xffff
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
mov ecx, dword [edx + ecx*2 - 0x12]
mov edx, dword [esp + 0xbd8]
sub edx, ecx
mov ecx, dword [esp + 0x4c]
add ecx, esi
cmp edi, eax
jge case.default.0x48bd9e
add ecx, 0xc
sub eax, edi
mov edi, dword [ecx - 4]
mov esi, dword [ecx]
add edi, edx
add esi, edx
mov dword [ecx - 4], edi
mov dword [ecx], esi
add ecx, 0x1e
dec eax
jne 0x48be66
jmp case.default.0x48bd9e
xor edx, edx
mov dx, word [ebp + 6]
lea eax, [ebp + edx*8 + 8]
mov edx, dword [esp + 0xbd4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xbd8]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
cmp word [esp + 0x64], 1
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
jne 0x48bed0
cmp word [eax + esi], 0x7f03
jne 0x48bed0
mov edx, dword [eax + esi + 8]
sub edx, dword [eax + esi + 0xc]
mov eax, dword [esp + 0x40]
add eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
mov edx, ecx
add eax, esi
and edx, 0xffff
cmp edi, edx
jge case.default.0x48bd9e
lea ecx, [eax + 0xc]
sub edx, edi
mov eax, dword [esp + 0x40]
mov esi, dword [ecx - 4]
mov edi, dword [ecx]
add esi, eax
add edi, eax
mov dword [ecx - 4], esi
mov dword [ecx], edi
add ecx, 0x1e
dec edx
jne 0x48bee7
jmp case.default.0x48bd9e
cmp cx, word [esp + 0x74]
jbe case.default.0x48bd9e
mov edx, ecx
xor eax, eax
and edx, 0xffff
mov ax, word [ebp + 6]
lea ecx, [edx + edx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [ebp + ecx*2]
cmp word [ecx + eax*8 - 0x16], 0x7f03
jne 0x48bf76
mov ecx, dword [esp + 0x2c]
lea eax, [ebp + eax*8 + 8]
add ecx, 0xffff
mov edx, ecx
mov dword [esp + 0x2c], ecx
and edx, 0xffff
lea edx, [edx + edx*2]
lea edx, [edx + edx*4]
lea eax, [eax + edx*2]
mov edx, dword [esp + 0xbd8]
mov esi, edx
sub esi, dword [eax + 8]
add dword [eax + 0xc], esi
cmp cx, word [esp + 0x74]
mov dword [eax + 8], edx
jbe case.default.0x48bd9e
or byte [eax - 0x1c], 2
jmp case.0x48bd9e.3
lea ecx, [esi + eax*8 + 8]
cmp word [ecx + ebp], 0x7f03
jne 0x48bfd7
lea eax, [ebp + eax*8 + 8]
mov dword [esp + 0x70], eax
mov ecx, dword [eax + esi + 8]
sub ecx, dword [eax + esi + 0xc]
cmp edi, edx
mov dword [esp + 0x4c], ecx
jge 0x48bfc7
lea ecx, [edi + edi*2]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*2 + 8]
mov ecx, edx
sub ecx, edi
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x4c]
add dword [eax + 4], ecx
add dword [eax], ecx
mov ecx, dword [esp + 0x50]
add eax, 0x1e
dec ecx
mov dword [esp + 0x50], ecx
jne 0x48bfac
mov eax, dword [esp + 0x70]
lea ecx, [edi + 1]
cmp edx, ecx
jle 0x48bfd7
or byte [eax + esi + 0x20], 1
lea esi, [eax + esi + 0x20]
mov ecx, dword [esp + 0x2c]
cmp word [esp + 0x74], cx
jae case.default.0x48bd9e
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x74]
mov dword [esp + 0x30], 0
and eax, 0xffff
mov dword [esp + 0x18], eax
lea edx, [eax + eax*2]
lea edx, [edx + edx*4]
shl edx, 1
mov dword [esp + 0x34], edx
cmp word [esp + 0x64], 0
jne 0x48c028
mov esi, ecx
xor edx, edx
and esi, 0xffff
cmp eax, esi
setl dl
jmp 0x48c02f
xor edx, edx
cmp eax, edi
setge dl
mov eax, edx
test eax, eax
je 0x48c173
mov ecx, dword [esp + 0x34]
xor eax, eax
mov ax, word [ebp + 6]
lea esi, [ecx + eax*8 + 8]
add esi, ebp
cmp word [esi], 0x7f03
je 0x48c138
mov eax, dword [esp + 0xbcc]
xor edx, edx
mov dx, word [esi + 4]
mov ecx, ebx
add edx, eax
push edx
call fcn.004af4b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xbc4]
mov edx, dword [0x6559e0]
push eax
push ebp
push 0
push ebx
push 0x3e8
push ecx
call dword [edx + 0x1ee]
xor edi, edi
xor eax, eax
mov di, word [esi + 6]
mov ax, word [esi + 4]
add esp, 0x18
sub edi, eax
cmp word [0x655b00], 2
jb 0x48c0c2
mov ecx, dword [esp + 0x64]
push ecx
push 0
push esi
call fcn.0049b1f0
add esp, 0xc
test ax, ax
mov eax, 1
jne 0x48c0c7
mov eax, 2
mov ecx, dword [esp + 0x48]
xor edx, edx
mov dx, word [esi + 4]
push esi
push edi
mov edi, dword [esp + 0x60]
sub edx, ecx
mov ecx, dword [esp + 0xbd4]
add edx, edi
add edx, ecx
xor ecx, ecx
mov cx, word [esi + 2]
push edx
mov edx, dword [esp + 0x1c]
and ecx, eax
mov eax, dword [esp + 0xbd0]
push ecx
mov ecx, dword [0x6559e0]
push edx
push eax
call dword [ecx + 0x21e]
mov esi, eax
add esp, 0x18
test esi, esi
jge 0x48c11e
mov eax, dword [esp + 0x30]
test eax, eax
jl 0x48c11e
mov dword [esp + 0x30], esi
jmp 0x48c138
mov eax, dword [esp + 0x30]
xor edx, edx
test eax, eax
setl dl
xor eax, eax
test esi, esi
setl al
cmp eax, edx
jne 0x48c138
add dword [esp + 0x30], esi
cmp word [esp + 0x64], 0
mov ecx, dword [esp + 0x18]
jne 0x48c152
mov eax, dword [esp + 0x34]
inc ecx
mov dword [esp + 0x18], ecx
add eax, 0x1e
jmp 0x48c15e
mov eax, dword [esp + 0x34]
dec ecx
mov dword [esp + 0x18], ecx
sub eax, 0x1e
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
jmp 0x48c00f
mov eax, dword [esp + 0x30]
test eax, eax
jl case.default.0x48bd9e
mov edx, dword [esp + 0xbd8]
mov esi, dword [esp + 0xbd4]
sub edx, esi
cmp eax, edx
jge case.default.0x48bd9e
mov eax, dword [esp + 0x10]
cmp eax, 1
jge case.default.0x48bd9e
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x48bfee
mov ecx, dword [esp + 0x6c]
xor eax, eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0x84], eax
mov ax, word [ebp + 4]
and ecx, 0xffff
mov dword [esp + 0x3c], ecx
lea edx, [ecx + ecx*2 + 3]
lea esi, [eax + eax*2]
lea edx, [edx + edx*4]
lea esi, [esi + esi*4]
shl edx, 1
shl esi, 1
sub esi, edx
mov dword [esp + 0x70], edx
cmp esi, 0x780
ja 0x48c225
mov edx, dword [esp + 0x3c]
mov ecx, eax
sub ecx, edx
xor esi, esi
mov si, word [ebp + 6]
dec ecx
lea edx, [edx + edx*2]
lea edi, [esp + 0x440]
lea ecx, [ecx + ecx*2]
lea edx, [edx + edx*4]
lea ecx, [ecx + ecx*4]
lea edx, [ebp + edx*2]
shl ecx, 1
lea esi, [edx + esi*8 + 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x48c5f4
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esp + 0x40], eax
lea eax, [ecx + ecx*2]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esp + 0xbc], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
and ecx, 0xffff
mov dword [esp + 0x34], 0
cmp eax, ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], ecx
jge 0x48c4df
lea edi, [eax + eax*2]
lea edi, [edi + edi*4]
shl edi, 1
mov dword [esp + 0x98], edi
xor eax, eax
mov ecx, dword [esp + 0x34]
mov ax, word [ebp + 6]
lea esi, [edi + eax*8 + 8]
mov eax, dword [esi + ebp + 8]
add esi, ebp
add eax, ecx
mov ecx, eax
mov dword [esi + 8], eax
mov ax, word [esi]
mov dword [esp + 0x28], eax
and eax, 0xffff
add eax, 0xffff8100
cmp eax, 0x8a
ja case.0x48c2bc.32516
xor edx, edx
mov dl, byte [eax + 0x48c710]
jmp dword [edx*4 + 0x48c6fc]
cmp dword [esi + 0xc], ecx
je case.0x48c2bc.32515
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov dword [esi + 0xc], ecx
jmp case.0x48c2bc.32515
mov edx, dword [esp + 0xbdc]
mov edi, dword [ebx]
lea ecx, [esp + 0x104]
push 0
push ecx
push edx
mov ecx, ebx
call fcn.00481a50
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0xbcc]
push eax
push ecx
mov ecx, ebx
call dword [edi + 0x1c]
mov word [esi], ax
lea edi, [esp + 0x104]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x104]
dec ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0xbcc]
mov eax, dword [esp + 0x34]
mov edx, dword [esi + 0xc]
xor edi, edi
mov di, word [esi + 4]
add edx, eax
add edi, ecx
mov ecx, ebx
push edi
mov dword [esi + 0xc], edx
call fcn.004af4b0
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0xbc4]
push ecx
push ebp
mov dx, word [eax + 0xc]
push 0
push ebx
push edx
push eax
mov eax, dword [0x6559e0]
call dword [eax + 0x1ee]
add esp, 0x18
cmp word [esp + 0x28], 0x7f01
je 0x48c39e
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
sub eax, ecx
add eax, edi
mov dword [esp + 0x8c], eax
mov ax, word [esi + 6]
sub ax, word [esi + 4]
mov dword [esp + 0x50], eax
cmp word [0x655b00], 2
jb 0x48c3c2
mov ecx, dword [esp + 0x64]
push ecx
push 0
push esi
call fcn.0049b1f0
add esp, 0xc
mov ecx, 1
test ax, ax
jne 0x48c3c7
mov ecx, 2
cmp word [esp + 0x64], 0
jne 0x48c3e6
mov edx, dword [esp + 0x74]
mov edi, dword [esp + 0x54]
and edx, 0xffff
xor eax, eax
cmp edi, edx
setl al
jmp 0x48c3fc
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x54]
and eax, 0xffff
xor edx, edx
cmp edi, eax
setg dl
mov eax, edx
lea edx, [esp + 0x84]
mov edi, dword [esp + 0xbd4]
push edx
lea edx, [esp + 0xac]
push edx
mov edx, dword [esp + 0x58]
and edx, 0xffff
push esi
push edx
mov edx, dword [esp + 0x9c]
push edx
xor edx, edx
mov dx, word [esi + 2]
and edx, ecx
mov ecx, dword [esp + 0xbd8]
neg eax
sbb eax, eax
push edx
mov edx, dword [esp + 0x48]
not eax
and eax, edx
mov edx, dword [esp + 0xbf0]
push eax
mov eax, dword [esp + 0xa0]
sub eax, edi
add eax, edx
mov edx, dword [0x6559e0]
push eax
push ecx
call dword [edx + 0x222]
mov cx, word [esi]
add esp, 0x24
cmp cx, 0x7f85
je 0x48c49f
cmp cx, 0x7f89
je 0x48c49f
mov ecx, dword [esi + 0x1a]
test ecx, ecx
je 0x48c49f
mov edx, dword [esp + 0x84]
add ecx, edx
mov dword [esi + 0x1a], ecx
mov ecx, dword [esp + 0x84]
add eax, ecx
mov dword [esp + 0x84], 0
mov cx, word [esp + 0x28]
mov edx, dword [esi + 0xc]
mov edi, dword [esp + 0x98]
mov word [esi], cx
mov ecx, dword [esp + 0x34]
add edx, eax
add ecx, eax
mov dword [esi + 0xc], edx
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
inc eax
add edi, 0x1e
cmp eax, ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x98], edi
jl 0x48c281
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x48c580
xor eax, eax
mov ecx, dword [esp + 0x70]
mov ax, word [ebp + 4]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
shl edx, 1
sub edx, ecx
cmp edx, 0x780
ja 0x48c580
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xbc]
xor eax, eax
sub ecx, edx
mov ax, word [ebp + 6]
add ecx, 0xffffffe2
lea esi, [esp + 0x440]
lea eax, [ebp + eax*8 + 8]
lea edi, [edx + eax]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xa8]
mov esi, dword [ecx + eax - 0x16]
add esi, edx
mov dword [ecx + eax - 0x16], esi
mov edx, dword [esp + 0xa8]
mov edi, dword [ecx + eax - 0x12]
lea eax, [ecx + eax - 0x12]
add edi, edx
sub ecx, 0x1e
mov dword [eax], edi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x3c]
dec eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jg 0x48c24c
mov eax, dword [esp + 0x84]
test eax, eax
je 0x48c5f4
mov eax, dword [esp + 0xa0]
and eax, 0xffff
dec eax
je 0x48c59f
sub eax, 2
jne 0x48c5f4
mov ecx, dword [esp + 0x6c]
cmp cx, word [ebp + 4]
jae 0x48c5f4
mov eax, ecx
xor edx, edx
and eax, 0xffff
mov dx, word [ebp + 6]
mov esi, dword [esp + 0x84]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 1
lea edx, [eax + edx*8 + 0x10]
add edx, ebp
mov edi, dword [edx]
add edi, esi
mov dword [edx], edi
xor edx, edx
mov dx, word [ebp + 6]
lea eax, [eax + edx*8]
mov edx, dword [esp + 0x84]
mov esi, dword [eax + ebp + 0x14]
lea eax, [eax + ebp + 0x14]
add esi, edx
inc ecx
mov dword [eax], esi
cmp cx, word [ebp + 4]
jb 0x48c5a9
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x9c]
push eax
call fcn.00485270
mov ecx, dword [esp + 0xbc8]
push ecx
mov ecx, dword [esp + 0xbc]
call fcn.00485270
mov eax, dword [esp + 0xbd0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbb0
ret 0x34
mov dword [0x659104], edi
pop edi
mov eax, 1
pop esi
ret