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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x100ff008]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x60], edx
xor edx, edx
mov dword [esp + 0x64], eax
xor ecx, ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [edi]
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ecx
movlpd qword [esp + 0x7c], xmm0
mov dword [esp + 0x44], eax
cmp dword [edi + 0x40], ecx
jne 0x1004aee9
cmp byte [eax + 0x40], cl
jne 0x1004aee9
mov edx, dword [esp + 0x60]
mov ecx, edi
call fcn.10049c90
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x1004aee9
mov eax, dword [edi]
xor esi, esi
xor edx, edx
test dword [eax + 0x18], 0x800000
je 0x10049fea
mov edx, ebx
mov ecx, edi
call fcn.1006a480
mov edx, eax
mov ecx, edx
test edx, edx
je 0x1004a003
cmp byte [ecx + 8], 0x6d
jne 0x10049ffc
movzx eax, byte [ecx + 9]
or esi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x10049ff0
xor eax, eax
mov ecx, edi
test esi, esi
cmovne eax, edx
mov edx, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x74], eax
call fcn.10044de0
test eax, eax
jne 0x1004aee9
cmp dword [esp + 0x2c], eax
mov edx, ebx
mov ecx, edi
setne al
push eax
call fcn.10049d20
add esp, 4
test eax, eax
jne 0x1004aee9
mov edx, dword [ebx + 0x44]
mov ebx, 0xfff0bdc0
mov esi, dword [esp + 0x44]
test edx, edx
je 0x1004a06d
mov ecx, dword [esi + 0x14]
xor ebx, ebx
test ecx, ecx
jle 0x1004a06d
mov eax, dword [esi + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x1004a06d
inc ebx
add eax, 0x10
cmp ebx, ecx
jl 0x1004a061
mov eax, dword [esi + 0x10]
mov ecx, ebx
mov esi, dword [esp + 0x18]
mov edx, 9
shl ecx, 4
mov dword [esp + 0x58], ecx
push dword [ecx + eax]
mov ecx, edi
push 0
push dword [esi]
call fcn.100412f0
add esp, 0xc
mov dword [esp + 0x48], eax
cmp eax, 1
je 0x1004aee9
mov ecx, dword [esp + 0x60]
xor edx, edx
mov eax, dword [edi + 0x44]
mov dword [esp + 0x30], eax
mov dword [esp + 0x68], edx
mov dword [ecx + 0x38], eax
inc dword [edi + 0x44]
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0x44]
test eax, eax
je 0x1004a0d1
inc ecx
inc edx
mov dword [edi + 0x44], ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x1004a0c1
mov dword [esp + 0x68], edx
cmp dword [esp + 0x74], 0
je 0x1004a0f6
mov eax, dword [edi + 0x1ec]
mov dword [esp + 0x88], eax
mov eax, dword [esi]
mov dword [esp + 0x84], edi
mov dword [edi + 0x1ec], eax
jmp 0x1004a10f
mov eax, dword [esp + 0x80]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x88], eax
mov ecx, edi
call fcn.10062450
mov esi, eax
test esi, esi
je 0x1004aed1
cmp byte [edi + 0x12], 0
jne 0x1004a12a
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 + 0x24], edx
mov ecx, dword [edx + 0x14c]
test ecx, eax
jne 0x1004a17d
mov eax, dword [edx]
bts ecx, ebx
mov dword [edx + 0x14c], ecx
mov ecx, dword [esp + 0x58]
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 0x1004a17d
mov ecx, edx
call fcn.100482d0
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x148]
or byte [edx + 0x14], 1
bts eax, ebx
cmp dword [esp + 0x74], 0
mov dword [edx + 0x148], eax
je 0x1004a1bd
push dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov ecx, edi
push dword [esp + 0x68]
call fcn.10049db0
mov ecx, dword [esp + 0x38]
add esp, 8
mov eax, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], eax
jmp 0x1004a1c1
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x8c]
xorps xmm0, xmm0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
movlpd qword [esp + 0x94], xmm0
movlpd qword [esp + 0x9c], xmm0
movlpd qword [esp + 0xa4], xmm0
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], eax
call fcn.10035a30
test eax, eax
jne 0x1004aed1
mov eax, dword [esp + 0x44]
test byte [eax + 0x18], 0x80
je 0x1004a273
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x24], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a23f
mov ecx, esi
call fcn.10022900
test eax, eax
jne 0x1004a273
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x5c]
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 + 0x48], 0
jne 0x1004a3e1
cmp dword [esp + 0x64], 0
jne 0x1004a3e1
cmp dword [esp + 0x2c], 0
jne 0x1004a3e1
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x2c], 0x10
jne 0x1004a3e1
mov eax, dword [edi]
test dword [eax + 0x18], 0x80000
je 0x1004a2e0
mov eax, ecx
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [eax + 0x44]
mov edx, dword [eax]
add ecx, 0x38
call fcn.100090e0
add esp, 4
test eax, eax
je 0x1004a2d2
cmp dword [eax + 8], 0
jne 0x1004a3e1
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x10], 0
jne 0x1004a3e1
mov eax, dword [ecx]
mov edx, ebx
push eax
push 1
push dword [ecx + 0x20]
mov ecx, edi
call fcn.10041390
mov eax, dword [esp + 0x24]
add esp, 0xc
test byte [eax + 0x2c], 0x20
jne 0x1004a36e
mov ecx, dword [eax]
mov eax, dword [eax + 0x20]
mov edi, dword [esi + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x40], ecx
cmp dword [eax + 0x54], edi
jg 0x1004a328
mov ecx, esi
call fcn.10022900
test eax, eax
je 0x1004a328
mov edi, 1
jmp 0x1004a358
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x5c]
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.10022f50
mov eax, dword [esp + 0x20]
add esp, 8
mov edi, dword [eax + 8]
test edi, edi
je 0x1004ae26
nop dword [eax]
mov eax, dword [edi + 0x2c]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x2c], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a3a5
mov ecx, esi
call fcn.10022900
test eax, eax
jne 0x1004a3d5
mov ecx, dword [esp + 0x2c]
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 0x1004a380
jmp 0x1004ae26
mov ebx, dword [esp + 0x18]
test byte [ebx + 0x2c], 0x20
jne 0x1004a451
inc dword [edi + 0x48]
xor ebx, ebx
mov eax, dword [edi + 0x48]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x24], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a425
mov ecx, esi
call fcn.10022900
test eax, eax
jne 0x1004a523
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x6c]
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 0x1004a523
mov ebx, dword [ebx + 8]
mov dword [esp + 0x48], ebx
test ebx, ebx
je 0x1004a474
nop dword [eax]
mov eax, dword [ebx + 0x38]
and al, 3
cmp al, 2
je 0x1004a470
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x1004a460
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 + 0x54], eax
inc eax
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x20], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a4c2
mov ecx, esi
call fcn.10022900
test eax, eax
je 0x1004a4be
mov ecx, 1
mov dword [esp + 0x20], ecx
jmp 0x1004a4fd
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x54]
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 + 0x40]
call fcn.10048d60
add esp, 4
or edx, 0xffffffff
mov ecx, edi
push eax
call fcn.10022f50
mov edi, dword [esp + 0x40]
add esp, 8
mov eax, dword [esp + 0x30]
mov ecx, edi
mov edx, dword [esp + 0x60]
inc eax
push eax
push 0xc
push 0
push 0
push dword [esp + 0x74]
call fcn.10079120
add esp, 0x14
mov dword [esp + 0x24], eax
test eax, eax
je 0x1004aed1
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x78], ecx
mov ecx, dword [eax + 0x40]
mov al, byte [eax + 0x26]
mov byte [esp + 0x17], al
mov byte [esp + 0x7c], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], ecx
test byte [eax + 0x18], 0x80
je 0x1004a5c2
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a58e
mov ecx, esi
call fcn.10022900
test eax, eax
jne 0x1004a5c2
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x5c]
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 0x1004a621
mov edx, dword [esp + 0x3c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x10], ecx
cmp ax, dx
jge 0x1004a617
mov edi, dword [esp + 0x18]
nop dword [eax + eax]
mov eax, dword [esp + 0x4c]
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 + 0x38]
call fcn.10039c00
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [esp + 0x3c]
inc ecx
movsx eax, dx
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x1004a5e0
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
jmp 0x1004a648
mov eax, dword [edi + 0x48]
mov ecx, edi
mov edx, dword [esp + 0x18]
inc eax
push 0
push eax
push dword [esp + 0x38]
push 0xffffffffffffffff
call fcn.10039d40
add esp, 0x10
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 0x48]
jle 0x1004a648
mov dword [edi + 0x48], eax
cmp byte [esp + 0x17], 0
je 0x1004a81d
mov eax, dword [esp + 0x3c]
movzx ecx, ax
mov eax, dword [esp + 0x68]
add eax, 2
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x44]
cdq
push edx
push eax
call fcn.10005190
mov ecx, eax
add esp, 8
mov dword [esp + 0x50], ecx
test ecx, ecx
jne 0x1004a68c
mov ecx, dword [esp + 0x24]
call fcn.10079ba0
jmp 0x1004aed1
mov eax, dword [esp + 0x68]
inc eax
push eax
push 1
push ecx
call fcn.100bfa00
mov eax, dword [esp + 0x74]
add esp, 0xc
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
mov byte [eax + edx + 1], 0
mov eax, dword [esp + 0x78]
test eax, eax
js 0x1004a6bc
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x1c]
test eax, eax
js 0x1004a6ca
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1004a714
cmp eax, dword [esi + 0x20]
jge 0x1004a714
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.10022d50
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 + 0x38]
dec eax
cmp dword [esp + 0x20], eax
jne 0x1004a714
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x4c], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a73c
mov ecx, esi
call fcn.10022900
test eax, eax
je 0x1004a738
mov dword [esp + 0x4c], 1
jmp 0x1004a770
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
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], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x24]
call fcn.10079ba0
mov ecx, esi
call fcn.10022a30
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x70], eax
mov eax, edx
mov dword [esp + 0x1c], edx
cmp dword [ecx + 0x54], edx
jg 0x1004a7a7
mov ecx, esi
call fcn.10022900
test eax, eax
jne 0x1004a7dc
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x1c]
inc eax
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x70]
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 + 0x4c]
cmp edx, eax
jbe 0x1004a7f4
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 edx, dword [esp + 0x50]
mov dword [esp + 0x50], edx
mov dword [eax + 0x58], ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
movzx eax, ax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
jmp 0x1004a983
test ebx, ebx
je 0x1004a8fd
inc dword [edi + 0x48]
mov edx, ebx
mov eax, dword [edi + 0x48]
mov ecx, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
call fcn.10051af0
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x78], eax
mov eax, edx
mov dword [esp + 0x1c], edx
cmp dword [ecx + 0x54], edx
jg 0x1004a873
mov ecx, esi
call fcn.10022900
test eax, eax
je 0x1004a86c
mov eax, dword [esp + 0x3c]
mov edx, 1
cwde
jmp 0x1004a8b7
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x4c]
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 + 0x1c], ebx
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x10]
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 + 0x1c]
push eax
push dword [esp + 0x7c]
mov ecx, esi
call fcn.10022f50
mov eax, dword [esi + 0x18]
add esp, 8
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x1c], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a8e8
mov ecx, esi
call fcn.10022900
test eax, eax
jne 0x1004a978
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x54]
mov word [eax + ecx*4], 0x6e
jmp 0x1004a957
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004a944
mov ecx, esi
call fcn.10022900
test eax, eax
je 0x1004a940
mov ecx, dword [esp + 0x24]
call fcn.10079ba0
mov eax, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 1
jmp 0x1004a983
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x6c]
mov word [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov ecx, dword [esp + 0x24]
call fcn.10079ba0
xor edx, edx
cmp dword [esp + 0x74], 0
jne 0x1004a9b1
lea eax, [esp + 0x40]
mov ecx, edi
push eax
lea eax, [esp + 0x38]
push eax
push edx
push dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
push 0x37
call fcn.100557b0
mov eax, dword [esp + 0x54]
add esp, 0x14
mov dword [esp + 0x58], eax
cmp byte [esp + 0x17], 0
je 0x1004aa96
mov ebx, dword [esp + 0x34]
mov eax, ebx
sub eax, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
cmp byte [eax + edx], 0
je 0x1004aa39
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
cmp dword [eax + 0x54], ebx
jg 0x1004a9ed
mov ecx, esi
call fcn.10022900
test eax, eax
je 0x1004a9ed
mov ebx, 1
jmp 0x1004aa21
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x10]
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 + 0x20]
mov edx, ebx
cwde
mov ecx, esi
push 0xfffffffffffffff2
push eax
call fcn.10022f50
add esp, 8
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x2c], 0x10
je 0x1004ac2a
mov ebx, dword [ecx + 0x3c]
test ebx, ebx
je 0x1004aa61
mov eax, dword [esp + 0x44]
cmp dword [ebx], eax
je 0x1004aa61
mov ebx, dword [ebx + 0x18]
test ebx, ebx
jne 0x1004aa56
mov edx, ecx
mov ecx, edi
call fcn.1006fe60
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x1c], edx
cmp dword [eax + 0x54], edx
jg 0x1004abc0
mov ecx, esi
call fcn.10022900
test eax, eax
je 0x1004abbc
mov edx, 1
jmp 0x1004abf8
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x28], edx
mov eax, dword [eax + 0x54]
test ebx, ebx
je 0x1004ab5b
mov ecx, edx
cmp eax, edx
jg 0x1004aacd
mov ecx, esi
call fcn.10022900
test eax, eax
je 0x1004aac6
mov dword [esp + 0x28], 1
jmp 0x1004ab04
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 + 0x54]
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 0x1004ab1e
mov ecx, esi
call fcn.10022900
test eax, eax
jne 0x1004aa35
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
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 0x1004aa3d
mov dword [esp + 0x28], edx
cmp eax, edx
jg 0x1004ab7f
mov ecx, esi
call fcn.10022900
test eax, eax
je 0x1004ab7b
mov dword [esp + 0x28], 1
jmp 0x1004aa35
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
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 0x1004aa3d
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
inc dword [esi + 0x20]
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x38]
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.10022f50
mov ecx, dword [esi + 4]
add esp, 8
test ecx, ecx
je 0x1004ac17
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 0x1004ac55
push dword [esp + 0x7c]
cmp byte [edi + 0x12], 0
push 0xa
sete al
movzx eax, al
push eax
push dword [esp + 0x2c]
push edx
push dword [esp + 0x6c]
mov edx, ecx
mov ecx, edi
push ebx
push dword [esp + 0x48]
call fcn.1004af90
add esp, 0x20
cmp byte [esp + 0x17], 0
mov ecx, dword [esi + 0x18]
je 0x1004ac82
mov ebx, dword [esp + 0x70]
not ebx
test ebx, ebx
js 0x1004ac76
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x1004ac76
mov eax, dword [esi + 0x20]
mov dword [edx + ebx*4], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [ecx + 0x58], eax
jmp 0x1004ad4b
cmp dword [esp + 0x48], 0
mov ebx, dword [esi + 0x20]
mov eax, dword [ecx + 0x54]
mov ecx, ebx
je 0x1004ace1
cmp eax, ebx
jg 0x1004aca7
mov ecx, esi
call fcn.10022900
test eax, eax
jne 0x1004ad2a
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 + 0x54]
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x28]
inc eax
mov dword [ecx + 8], eax
jmp 0x1004ad2a
cmp eax, ebx
jg 0x1004acf3
mov ecx, esi
call fcn.10022900
test eax, eax
jne 0x1004ad2a
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 0x1004ad42
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 + 0x74], 0
jne 0x1004ae2a
mov ebx, dword [esp + 0x18]
test byte [ebx + 0x2c], 0x10
jne 0x1004ae2a
cmp dword [esp + 0x48], 0
jne 0x1004adbd
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x7c], ecx
cmp dword [eax + 0x54], ecx
jg 0x1004ad89
mov ecx, esi
call fcn.10022900
test eax, eax
jne 0x1004adbd
mov ecx, dword [esp + 0x7c]
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x34]
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 + 0x2c], eax
test eax, eax
je 0x1004ae2a
mov edi, dword [esp + 0x58]
nop dword [eax]
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
cmp dword [eax + 0x54], ebx
jg 0x1004ade6
mov ecx, esi
call fcn.10022900
test eax, eax
jne 0x1004ae16
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 + 0x2c]
inc edi
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x1004add0
mov edi, dword [esp + 0x38]
cmp byte [edi + 0x12], 0
jne 0x1004ae40
cmp dword [edi + 0x19c], 0
jne 0x1004ae40
mov ecx, edi
call fcn.10052130
mov eax, dword [esp + 0x44]
test byte [eax + 0x18], 0x80
je 0x1004aed1
cmp byte [edi + 0x12], 0
jne 0x1004aed1
cmp dword [edi + 0x19c], 0
jne 0x1004aed1
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x54], edi
jg 0x1004ae73
mov ecx, esi
call fcn.10022900
test eax, eax
jne 0x1004aea7
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x5c]
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.10023fd0
mov eax, dword [esi]
cmp byte [eax + 0x40], 0
jne 0x1004aed1
mov ecx, dword [esi + 0x10]
mov edx, str.rows_deleted
push 0
push 1
push 0xffffffffffffffff
call fcn.10021f50
add esp, 0xc
mov eax, dword [esp + 0x84]
test eax, eax
je 0x1004aee9
mov ecx, dword [esp + 0x88]
mov dword [eax + 0x1ec], ecx
mov edi, dword [esp + 0x44]
mov ecx, edi
mov edx, dword [esp + 0x60]
call fcn.10047c30
mov edx, dword [esp + 0x64]
mov ecx, edi
call fcn.10036bf0
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x1004af78
test edi, edi
je 0x1004af6f
cmp dword [edi + 0x208], 0
je 0x1004af36
mov edx, ecx
mov ecx, edi
call fcn.10004ee0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.100bd09a
mov esp, ebp
pop ebp
ret
cmp ecx, dword [edi + 0x114]
jb 0x1004af6f
cmp ecx, dword [edi + 0x118]
jae 0x1004af6f
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 + 0xa0]
xor ecx, esp
call fcn.100bd09a
mov esp, ebp
pop ebp
ret
push ecx
call fcn.10004e40
add esp, 4
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100bd09a
mov esp, ebp
pop ebp
ret