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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x10100008]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x58], edx
xor ecx, ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x34], edi
mov eax, dword [edi]
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x50], ecx
movlpd qword [esp + 0x84], xmm0
mov dword [esp + 0x38], eax
cmp dword [edi + 0x40], ecx
jne 0x1004ab54
cmp byte [eax + 0x40], cl
jne 0x1004ab54
mov ecx, edi
call fcn.10049910
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x1004ab54
mov eax, dword [edi]
xor esi, esi
xor edx, edx
test dword [eax + 0x18], 0x800000
je 0x10049c85
mov edx, ebx
mov ecx, edi
call fcn.10069ff0
mov edx, eax
mov ecx, edx
test edx, edx
je 0x10049ca3
nop dword [eax + eax]
cmp byte [ecx + 8], 0x6d
jne 0x10049c9c
movzx eax, byte [ecx + 9]
or esi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x10049c90
xor eax, eax
mov ecx, edi
test esi, esi
cmovne eax, edx
mov edx, ebx
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x68], eax
call fcn.10044a30
test eax, eax
jne 0x1004ab54
cmp dword [esp + 0x40], eax
mov edx, ebx
mov ecx, edi
setne al
push eax
call fcn.100499a0
add esp, 4
test eax, eax
jne 0x1004ab54
mov edx, dword [ebx + 0x44]
mov ebx, 0xfff0bdc0
mov esi, dword [esp + 0x38]
test edx, edx
je 0x10049d0d
mov ecx, dword [esi + 0x14]
xor ebx, ebx
test ecx, ecx
jle 0x10049d0d
mov eax, dword [esi + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x10049d0d
inc ebx
add eax, 0x10
cmp ebx, ecx
jl 0x10049d01
mov eax, dword [esi + 0x10]
mov ecx, ebx
mov esi, dword [esp + 0x1c]
mov edx, 9
shl ecx, 4
mov dword [esp + 0x64], ecx
push dword [ecx + eax]
mov ecx, edi
push 0
push dword [esi]
call fcn.10040f80
add esp, 0xc
mov dword [esp + 0x24], eax
cmp eax, 1
je 0x1004ab54
mov ecx, dword [esp + 0x58]
xor edx, edx
mov eax, dword [edi + 0x44]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x78], edx
mov dword [ecx + 0x38], eax
inc dword [edi + 0x44]
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0x44]
test eax, eax
je 0x10049d71
inc ecx
inc edx
mov dword [edi + 0x44], ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x10049d61
mov dword [esp + 0x78], edx
cmp dword [esp + 0x68], 0
je 0x10049d96
mov eax, dword [edi + 0x1ec]
mov dword [esp + 0x8c], eax
mov eax, dword [esi]
mov dword [esp + 0x90], edi
mov dword [edi + 0x1ec], eax
jmp 0x10049db2
mov eax, dword [esp + 0x88]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x8c], eax
mov ecx, edi
call fcn.10061fd0
mov esi, eax
test esi, esi
je 0x1004ab3c
cmp byte [edi + 0x12], 0
jne 0x10049dcd
or dword [esi + 0x58], 0x10
mov eax, dword [edi + 0x198]
mov edx, edi
test eax, eax
mov ecx, ebx
cmovne edx, eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x4c], edx
mov ecx, dword [edx + 0x14c]
test ecx, eax
jne 0x10049e20
mov eax, dword [edx]
bts ecx, ebx
mov dword [edx + 0x14c], ecx
mov ecx, dword [esp + 0x64]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx + 0xc]
mov eax, dword [eax]
mov dword [edx + ebx*4 + 0x150], eax
cmp ebx, 1
jne 0x10049e20
mov ecx, edx
call fcn.10047f40
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 0x148]
or byte [edx + 0x14], 1
bts eax, ebx
cmp dword [esp + 0x68], 0
mov dword [edx + 0x148], eax
je 0x10049e60
push dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ecx, edi
push dword [esp + 0x60]
call fcn.10049a30
mov ecx, dword [esp + 0x34]
add esp, 8
mov eax, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x64], eax
jmp 0x10049e64
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x94]
xorps xmm0, xmm0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
movlpd qword [esp + 0x9c], xmm0
movlpd qword [esp + 0xa4], xmm0
movlpd qword [esp + 0xac], xmm0
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], eax
call fcn.10035740
test eax, eax
jne 0x1004ab3c
mov eax, dword [esp + 0x38]
test byte [eax + 0x18], 0x80
je 0x10049f16
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], ecx
cmp dword [eax + 0x54], ecx
jg 0x10049ee2
mov ecx, esi
call fcn.10022850
test eax, eax
jne 0x10049f16
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x54]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x24], 0
jne 0x1004a081
cmp dword [esp + 0x5c], 0
jne 0x1004a081
cmp dword [esp + 0x40], 0
jne 0x1004a081
mov ecx, dword [esp + 0x1c]
test byte [ecx + 0x2c], 0x10
jne 0x1004a081
mov eax, dword [edi]
test dword [eax + 0x18], 0x80000
je 0x10049f86
mov eax, ecx
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [eax + 0x44]
mov edx, dword [eax]
add ecx, 0x38
call fcn.100090e0
add esp, 4
test eax, eax
je 0x10049f78
cmp dword [eax + 8], 0
jne 0x1004a081
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x10], 0
jne 0x1004a081
mov eax, dword [ecx]
mov edx, ebx
push eax
push 1
push dword [ecx + 0x20]
mov ecx, edi
call fcn.10041020
mov eax, dword [esp + 0x28]
add esp, 0xc
test byte [eax + 0x2c], 0x20
jne 0x1004a014
mov ecx, dword [eax]
mov eax, dword [eax + 0x20]
mov edi, dword [esi + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x40], ecx
cmp dword [eax + 0x54], edi
jg 0x10049fce
mov ecx, esi
call fcn.10022850
test eax, eax
je 0x10049fce
mov edi, 1
jmp 0x10049ffe
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x54]
mov word [eax + ecx*4], 0x76
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffffe
push dword [esp + 0x44]
mov edx, edi
mov ecx, esi
call fcn.10022ea0
mov eax, dword [esp + 0x24]
add esp, 8
mov edi, dword [eax + 8]
test edi, edi
je 0x1004aa89
nop
mov eax, dword [edi + 0x2c]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a045
mov ecx, esi
call fcn.10022850
test eax, eax
jne 0x1004a075
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x40]
mov word [eax + ecx*4], 0x76
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x1004a020
jmp 0x1004aa89
mov ebx, dword [esp + 0x1c]
test byte [ebx + 0x2c], 0x20
jne 0x1004a0f1
inc dword [edi + 0x48]
xor ebx, ebx
mov eax, dword [edi + 0x48]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x14], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a0c5
mov ecx, esi
call fcn.10022850
test eax, eax
jne 0x1004a1c3
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x74]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], bl
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
jmp 0x1004a1c3
mov ebx, dword [ebx + 8]
mov dword [esp + 0x48], ebx
test ebx, ebx
je 0x1004a114
nop dword [eax]
mov eax, dword [ebx + 0x38]
and al, 3
cmp al, 2
je 0x1004a110
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x1004a100
mov dword [esp + 0x48], ebx
movzx ecx, word [ebx + 0x32]
mov eax, dword [edi + 0x48]
mov dword [esp + 0x3c], ecx
movsx ecx, cx
lea edx, [eax + 1]
add eax, ecx
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x44], eax
inc eax
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x50], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a162
mov ecx, esi
call fcn.10022850
test eax, eax
je 0x1004a15e
mov ecx, 1
mov dword [esp + 0x50], ecx
jmp 0x1004a19d
mov ecx, dword [esp + 0x50]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 4], edx
movsx edx, bx
mov ebx, dword [esp + 0x48]
mov word [eax + ecx*4], 0x39
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [edi + 8]
mov edx, ebx
push 0xfffffffffffffffa
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.100489c0
add esp, 4
or edx, 0xffffffff
mov ecx, edi
push eax
call fcn.10022ea0
mov edi, dword [esp + 0x3c]
add esp, 8
mov eax, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [esp + 0x58]
inc eax
push eax
push 0xc
push 0
push 0
push dword [esp + 0x6c]
call fcn.10078bf0
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004ab3c
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x80], ecx
mov ecx, dword [eax + 0x40]
mov al, byte [eax + 0x26]
mov byte [esp + 0x13], al
mov byte [esp + 0x84], al
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
test byte [eax + 0x18], 0x80
je 0x1004a268
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x24], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a234
mov ecx, esi
call fcn.10022850
test eax, eax
jne 0x1004a268
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x54]
mov word [eax + ecx*4], 0x25
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test ebx, ebx
je 0x1004a2c2
mov edx, dword [esp + 0x3c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x24], ecx
cmp ax, dx
jge 0x1004a2b8
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
mov edx, edi
add eax, ecx
push eax
mov eax, dword [ebx + 4]
movsx eax, word [eax + ecx*2]
mov ecx, esi
push eax
push dword [esp + 0x34]
call fcn.10039900
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x3c]
inc ecx
movsx eax, dx
mov dword [esp + 0x24], ecx
cmp ecx, eax
jl 0x1004a281
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
jmp 0x1004a2e9
mov eax, dword [edi + 0x48]
mov ecx, edi
mov edx, dword [esp + 0x1c]
inc eax
push 0
push eax
push dword [esp + 0x34]
push 0xffffffffffffffff
call fcn.10039a50
add esp, 0x10
mov dword [esp + 0x18], eax
cmp eax, dword [edi + 0x48]
jle 0x1004a2e9
mov dword [edi + 0x48], eax
cmp byte [esp + 0x13], 0
je 0x1004a40a
mov eax, dword [esp + 0x3c]
movzx ecx, ax
mov eax, dword [esp + 0x78]
add eax, 2
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x38]
cdq
push edx
push eax
call fcn.10005190
mov ecx, eax
add esp, 8
mov dword [esp + 0x60], ecx
test ecx, ecx
jne 0x1004a32d
mov ecx, dword [esp + 0x14]
call fcn.100796a0
jmp 0x1004ab3c
mov eax, dword [esp + 0x78]
inc eax
push eax
push 1
push ecx
call fcn.100c1600
mov eax, dword [esp + 0x84]
add esp, 0xc
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x2c]
mov byte [eax + edx + 1], 0
mov eax, dword [esp + 0x80]
test eax, eax
js 0x1004a363
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x20]
test eax, eax
js 0x1004a371
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1004a3bb
cmp eax, dword [esi + 0x20]
jge 0x1004a3bb
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
push dword [eax + ecx*4 + 0x10]
movsx edx, byte [eax + ecx*4 + 1]
lea edi, [eax + ecx*4]
mov ecx, dword [esi]
call fcn.10022ca0
xorps xmm0, xmm0
add esp, 4
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov byte [edi], 0x9a
mov eax, dword [esi + 0x20]
mov edi, dword [esp + 0x34]
dec eax
cmp dword [esp + 0x50], eax
jne 0x1004a3bb
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x70], edx
cmp dword [eax + 0x54], edx
jg 0x1004a3e6
mov ecx, esi
call fcn.10022850
test eax, eax
je 0x1004a3e2
mov dword [esp + 0x70], 1
jmp 0x1004a546
mov edx, dword [esp + 0x70]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
jmp 0x1004a531
test ebx, ebx
je 0x1004a4ec
inc dword [edi + 0x48]
mov edx, ebx
mov eax, dword [edi + 0x48]
mov ecx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0
call fcn.10051730
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x80], eax
mov eax, edx
mov dword [esp + 0x20], edx
cmp dword [ecx + 0x54], edx
jg 0x1004a463
mov ecx, esi
call fcn.10022850
test eax, eax
je 0x1004a45c
mov eax, dword [esp + 0x3c]
mov edx, 1
cwde
jmp 0x1004a4a7
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x6c]
lea ecx, [edx + edx*4]
inc eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x3c]
movsx ebx, bx
mov dword [esp + 0x20], ebx
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x48]
mov word [eax + ecx*4], 0x31
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x20]
push eax
push dword [esp + 0x84]
mov ecx, esi
call fcn.10022ea0
mov eax, dword [esi + 0x18]
add esp, 8
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x20], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a4d7
mov ecx, esi
call fcn.10022850
test eax, eax
jne 0x1004a546
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x6e
jmp 0x1004a525
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a512
mov ecx, esi
call fcn.10022850
test eax, eax
jne 0x1004a546
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x74]
mov word [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov byte [eax + ecx*4 + 3], 0
mov ecx, dword [esp + 0x14]
call fcn.100796a0
cmp byte [esp + 0x13], 0
je 0x1004a5de
mov ecx, esi
call fcn.10022980
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x7c], eax
mov eax, edx
mov dword [esp + 0x20], edx
cmp dword [ecx + 0x54], edx
jg 0x1004a588
mov ecx, esi
call fcn.10022850
test eax, eax
jne 0x1004a5bd
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x20]
inc eax
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x7c]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x10
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x20]
mov eax, dword [esp + 0x70]
cmp edx, eax
jbe 0x1004a5d5
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
lea ecx, [edx - 1]
mov dword [eax + 0x58], ecx
cmp dword [esp + 0x68], 0
jne 0x1004a60f
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x34]
mov ecx, edi
push eax
push dword [esp + 0x68]
push dword [esp + 0x38]
push 0x37
call fcn.100553d0
mov eax, dword [esp + 0x78]
add esp, 0x14
mov dword [esp + 0x4c], eax
cmp byte [esp + 0x13], 0
je 0x1004a6f4
mov ebx, dword [esp + 0x30]
mov eax, ebx
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x60]
cmp byte [eax + ecx], 0
je 0x1004a697
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
cmp dword [eax + 0x54], ebx
jg 0x1004a64b
mov ecx, esi
call fcn.10022850
test eax, eax
je 0x1004a64b
mov ebx, 1
jmp 0x1004a67f
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x18]
mov word [eax + ecx*4], 0x44
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x24]
mov edx, ebx
cwde
mov ecx, esi
push 0xfffffffffffffff2
push eax
call fcn.10022ea0
add esp, 8
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test byte [ecx + 0x2c], 0x10
je 0x1004a888
mov ebx, dword [ecx + 0x3c]
test ebx, ebx
je 0x1004a6bf
mov eax, dword [esp + 0x38]
cmp dword [ebx], eax
je 0x1004a6bf
mov ebx, dword [ebx + 0x18]
test ebx, ebx
jne 0x1004a6b4
mov edx, ecx
mov ecx, edi
call fcn.1006f9b0
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x20], edx
cmp dword [eax + 0x54], edx
jg 0x1004a81e
mov ecx, esi
call fcn.10022850
test eax, eax
je 0x1004a81a
mov edx, 1
jmp 0x1004a856
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x28], edx
mov eax, dword [eax + 0x54]
test ebx, ebx
je 0x1004a7b9
mov ecx, edx
cmp eax, edx
jg 0x1004a72b
mov ecx, esi
call fcn.10022850
test eax, eax
je 0x1004a724
mov dword [esp + 0x28], 1
jmp 0x1004a762
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x6c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
cmp dword [eax + 0x54], ebx
jg 0x1004a77c
mov ecx, esi
call fcn.10022850
test eax, eax
jne 0x1004a693
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov word [eax + ecx*4], 0x65
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x1004a69b
mov dword [esp + 0x28], edx
cmp eax, edx
jg 0x1004a7dd
mov ecx, esi
call fcn.10022850
test eax, eax
je 0x1004a7d9
mov dword [esp + 0x28], 1
jmp 0x1004a693
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov word [eax + ecx*4], 0x81
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x1004a69b
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x34]
mov word [eax + ecx*4], 0xf
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffff6
push ebx
mov ecx, esi
call fcn.10022ea0
mov ecx, dword [esi + 4]
add esp, 8
test ecx, ecx
je 0x1004a875
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 2
mov eax, dword [edi + 0x198]
mov ecx, edi
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
jmp 0x1004a8b6
push dword [esp + 0x84]
cmp byte [edi + 0x12], 0
push 0xa
sete al
movzx eax, al
push eax
push dword [esp + 0x30]
push edx
push dword [esp + 0x60]
mov edx, ecx
mov ecx, edi
push ebx
push dword [esp + 0x5c]
call fcn.1004ac00
add esp, 0x20
cmp byte [esp + 0x13], 0
mov ecx, dword [esi + 0x18]
je 0x1004a8e3
mov ebx, dword [esp + 0x7c]
not ebx
test ebx, ebx
js 0x1004a8d7
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x1004a8d7
mov eax, dword [esi + 0x20]
mov dword [edx + ebx*4], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [ecx + 0x58], eax
jmp 0x1004a9ac
cmp dword [esp + 0x48], 0
mov ebx, dword [esi + 0x20]
mov eax, dword [ecx + 0x54]
mov ecx, ebx
je 0x1004a942
cmp eax, ebx
jg 0x1004a908
mov ecx, esi
call fcn.10022850
test eax, eax
jne 0x1004a98b
mov ecx, dword [esi + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 9
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x28]
inc eax
mov dword [ecx + 8], eax
jmp 0x1004a98b
cmp eax, ebx
jg 0x1004a954
mov ecx, esi
call fcn.10022850
test eax, eax
jne 0x1004a98b
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x10
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x20]
cmp edx, eax
jbe 0x1004a9a3
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
lea ecx, [edx - 1]
mov dword [eax + 0x58], ecx
cmp dword [esp + 0x68], 0
jne 0x1004aa8d
mov ebx, dword [esp + 0x1c]
test byte [ebx + 0x2c], 0x10
jne 0x1004aa8d
cmp dword [esp + 0x48], 0
jne 0x1004aa24
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x84], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a9f0
mov ecx, esi
call fcn.10022850
test eax, eax
jne 0x1004aa24
mov ecx, dword [esp + 0x84]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x30]
mov word [eax + ecx*4], 0x3d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004aa8d
mov edi, dword [esp + 0x4c]
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
cmp dword [eax + 0x54], ebx
jg 0x1004aa49
mov ecx, esi
call fcn.10022850
test eax, eax
jne 0x1004aa79
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx*4]
inc dword [esi + 0x20]
mov word [eax + ecx*4], 0x3d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
inc edi
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x1004aa33
mov edi, dword [esp + 0x34]
cmp byte [edi + 0x12], 0
jne 0x1004aaa3
cmp dword [edi + 0x19c], 0
jne 0x1004aaa3
mov ecx, edi
call fcn.10051d70
mov eax, dword [esp + 0x38]
test byte [eax + 0x18], 0x80
je 0x1004ab3c
cmp byte [edi + 0x12], 0
jne 0x1004ab3c
cmp dword [edi + 0x19c], 0
jne 0x1004ab3c
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x1004aade
mov ecx, esi
call fcn.10022850
test eax, eax
jne 0x1004ab12
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x54]
mov word [eax + ecx*4], 0x23
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, 1
mov ecx, esi
call fcn.10023f10
mov eax, dword [esi]
cmp byte [eax + 0x40], 0
jne 0x1004ab3c
mov ecx, dword [esi + 0x10]
mov edx, str.rows_deleted
push 0
push 1
push 0xffffffffffffffff
call fcn.10021e00
add esp, 0xc
mov eax, dword [esp + 0x90]
test eax, eax
je 0x1004ab54
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0x1ec], ecx
mov edi, dword [esp + 0x38]
mov ecx, edi
mov edx, dword [esp + 0x58]
call fcn.100478a0
mov edx, dword [esp + 0x5c]
mov ecx, edi
call fcn.100368f0
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x1004abe3
test edi, edi
je 0x1004abda
cmp dword [edi + 0x208], 0
je 0x1004aba1
mov edx, ecx
mov ecx, edi
call fcn.10004ee0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100be769
mov esp, ebp
pop ebp
ret
cmp ecx, dword [edi + 0x114]
jb 0x1004abda
cmp ecx, dword [edi + 0x118]
jae 0x1004abda
mov eax, dword [edi + 0x110]
mov dword [ecx], eax
dec dword [edi + 0xfc]
mov dword [edi + 0x110], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100be769
mov esp, ebp
pop ebp
ret
push ecx
call fcn.10004e40
add esp, 4
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100be769
mov esp, ebp
pop ebp
ret