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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
xor eax, eax
mov dword [esp + 0x3c], 0
cmp dword [ebp + 0x18], eax
push esi
mov esi, ecx
mov dword [esp + 0x4c], eax
push edi
mov edi, edx
mov byte [esp + 0xd], al
setne byte [esp + 0xc]
mov dword [esp + 0x18], edi
mov ecx, dword [esi + 8]
mov eax, dword [esi]
mov dword [esp + 0x14], esi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x4a6c99
mov ecx, esi
call fcn.00478f40
mov ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esi + 8], ecx
test ecx, ecx
je 0x4a6c84
mov edx, 0x9e
call fcn.00479290
mov ecx, dword [esp + 0x10]
cmp dword [esi + 0x1a0], 0
jne 0x4a6c99
mov eax, dword [esi]
test byte [eax + 0x40], 8
jne 0x4a6c99
mov byte [esi + 0x17], 1
test byte [edi + 0x2a], 0x20
movsx eax, word [edi + 0x22]
mov dword [esp + 0x48], eax
jne 0x4a6cb9
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], 1
jmp 0x4a6ce4
mov edx, dword [edi + 8]
mov dword [esp + 0x24], edx
test edx, edx
je 0x4a6cdc
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
je 0x4a6cd4
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x4a6cc4
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], edx
movzx edx, word [edx + 0x32]
mov dword [esp + 0x34], edx
xor edi, edi
mov dword [esp + 0x28], 2
mov dword [esp + 0x4c], edi
test eax, eax
jle 0x4a6f24
mov esi, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x38], edx
movsx eax, word [esi + 0x20]
cmp edi, eax
je 0x4a6f08
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x4a6d21
cmp dword [eax + edi*4], 0
jl 0x4a6f08
mov eax, dword [esi + 4]
movzx esi, byte [eax + edx + 0xc]
test esi, esi
je 0x4a6f04
mov cl, byte [ebp + 0x20]
cmp cl, 0xa
je 0x4a6d65
movzx esi, cl
cmp esi, 5
jne 0x4a6d4e
cmp dword [eax + edx + 4], 0
mov eax, 2
cmove esi, eax
mov ecx, dword [esp + 0x10]
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x4a6d5e
jmp dword [eax*4 + 0x4a83dc]
cmp esi, 0xa
jne 0x4a6d3c
mov esi, 2
jmp 0x4a6d4e
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x1a0]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
push dword [eax + edx]
push dword [ecx]
push str._s._s
push dword [esp + 0x4c]
call fcn.0045bbf0
mov ecx, dword [esp + 0x20]
mov edx, 0x14
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + 0x14]
inc eax
add eax, edi
push eax
push esi
push 0x513
call fcn.00479660
mov ecx, dword [esp + 0x34]
add esp, 0x24
mov esi, dword [esp + 0x18]
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
jne 0x4a6f08
mov eax, dword [ecx + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov byte [eax + ecx*4 - 0x11], 1
mov ecx, dword [esp + 0x10]
jmp 0x4a6f08
mov eax, dword [ebp + 0x14]
mov edx, 0x4c
push dword [ebp + 0x24]
inc eax
add eax, edi
push eax
call fcn.00479370
mov ecx, dword [esp + 0x18]
add esp, 8
jmp 0x4a6f04
mov eax, dword [ebp + 0x14]
mov esi, dword [ecx + 0x20]
inc eax
add edi, eax
mov eax, dword [ecx + 0x18]
cmp dword [eax + 0x58], esi
jg 0x4a6e39
push 0
push 0
push edi
mov edx, 0x4d
call fcn.004791e0
mov edx, dword [esp + 0x44]
add esp, 0xc
mov esi, eax
jmp 0x4a6e70
lea eax, [esi + 1]
mov dword [ecx + 0x20], eax
lea ecx, [esi + esi*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov word [eax + ecx*4], 0x4d
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 eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov edx, dword [eax + edx + 4]
test edx, edx
je 0x4a6e96
cmp byte [edx], 0x9d
jne 0x4a6e96
mov eax, dword [esp + 0x14]
push edi
push dword [edx + 0x1c]
mov edx, 0x1e
mov ecx, dword [eax + 8]
jmp 0x4a6eb9
mov ecx, dword [esp + 0x14]
push edi
call fcn.00490cc0
add esp, 4
cmp eax, edi
je 0x4a6ec1
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x4a6ec1
push edi
push eax
mov edx, 0x1f
call fcn.00479370
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x20]
test esi, esi
jns 0x4a6edd
lea esi, [edx - 1]
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
je 0x4a6eec
mov eax, 0x5a2a64
jmp 0x4a6efd
mov eax, dword [esp + 0x10]
lea ecx, [esi + esi*4]
mov eax, dword [eax + 4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x4c]
mov dword [eax + 8], edx
mov esi, dword [esp + 0x18]
add dword [esp + 0x38], 0x10
inc edi
mov edx, dword [esp + 0x38]
mov dword [esp + 0x4c], edi
cmp edi, dword [esp + 0x48]
jl 0x4a6d04
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x30], edx
test edx, edx
je 0x4a712a
mov eax, dword [esp + 0x40]
test dword [eax + 0x18], 0x2000
jne 0x4a712a
mov eax, dword [ebp + 0x14]
inc eax
mov dword [esi + 0x64], eax
mov al, byte [ebp + 0x20]
cmp al, 0xa
je 0x4a6f5f
movzx eax, al
mov dword [esp + 0x38], eax
jmp 0x4a6f67
mov dword [esp + 0x38], 2
xor esi, esi
mov dword [esp + 0x4c], esi
cmp dword [edx], esi
jle 0x4a712a
mov edi, dword [ebp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov edi, edi
mov eax, dword [edx + 4]
mov ecx, dword [ecx + eax]
mov dword [esp + 0x5c], ecx
test edi, edi
je 0x4a6fde
xorps xmm0, xmm0
mov dword [esp + 0x78], 0
xor al, al
movdqa xmmword [esp + 0x60], xmm0
movq qword [esp + 0x70], xmm0
mov byte [esp + 0x74], al
mov dword [esp + 0x64], 0x4a6bd0
mov dword [esp + 0x78], edi
test ecx, ecx
je 0x4a6fce
mov edx, ecx
lea ecx, [esp + 0x60]
call fcn.0048aa60
mov al, byte [esp + 0x74]
mov edx, dword [esp + 0x30]
cmp byte [ebp + 0x1c], 0
jne 0x4a6fd6
and al, 0xfd
test al, al
je 0x4a7112
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x18]
mov edi, dword [esi + 0x74]
lea eax, [edi + 1]
mov dword [esi + 0x74], eax
lea eax, [edi - 1]
test edi, eax
jne 0x4a700f
mov edx, dword [esi + 0x78]
lea eax, [edi*8 + 4]
mov ecx, dword [esi]
push 0
push eax
call fcn.0045a1b0
add esp, 8
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4a701d
mov dword [eax + edi*4], 0xffffffff
mov edx, dword [esp + 0x5c]
or eax, 0xffffffff
sub eax, edi
mov edi, dword [esp + 0x14]
push 0x10
push eax
mov ecx, edi
mov dword [esp + 0x60], eax
call fcn.004922e0
mov esi, dword [esp + 0x40]
add esp, 8
cmp esi, 4
jne 0x4a70a3
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4a706b
push 0
push dword [ebp + 0x24]
mov edx, 0xd
mov ecx, esi
push 0
call fcn.004791e0
add esp, 0xc
jmp 0x4a70e4
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0xd
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
jmp 0x4a70e4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 4]
test eax, eax
jne 0x4a70bc
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push 3
cmp esi, 5
mov ecx, 2
push 0
cmove esi, ecx
mov edx, 0x113
push eax
push esi
mov ecx, edi
mov dword [esp + 0x48], esi
call fcn.0049cae0
mov esi, dword [esp + 0x20]
add esp, 0x10
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x4a7100
mov eax, dword [esp + 0x58]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
mov esi, dword [esp + 0x4c]
dec eax
mov edi, dword [ebp + 0x2c]
mov dword [edx + 0x60], eax
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
inc esi
add ecx, 0x18
mov dword [esp + 0x4c], esi
mov dword [esp + 0x2c], ecx
cmp esi, dword [edx]
jl 0x4a6f80
cmp byte [ebp + 0x1c], 0
je 0x4a7589
cmp dword [esp + 0x24], 0
jne 0x4a7589
mov edx, dword [esp + 0x10]
mov edi, dword [edx + 0x18]
mov esi, dword [edi + 0x74]
lea eax, [esi + 1]
mov dword [edi + 0x74], eax
lea eax, [esi - 1]
test esi, eax
jne 0x4a7174
mov edx, dword [edi + 0x78]
lea eax, [esi*8 + 4]
mov ecx, dword [edi]
push 0
push eax
call fcn.0045a1b0
mov edx, dword [esp + 0x18]
add esp, 8
mov dword [edi + 0x78], eax
mov eax, dword [edi + 0x78]
test eax, eax
je 0x4a7182
mov dword [eax + esi*4], 0xffffffff
mov eax, dword [esp + 0x18]
or edi, 0xffffffff
mov cl, byte [ebp + 0x20]
sub edi, esi
mov dword [esp + 0x38], edi
movzx esi, byte [eax + 0x2b]
cmp cl, 0xa
je 0x4a71a0
movzx esi, cl
jmp 0x4a71a8
cmp esi, 0xa
cmove esi, dword [esp + 0x28]
cmp byte [esp + 0xc], 0
je 0x4a722e
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4a71d8
push dword [ebp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, 0x4f
push edi
push dword [ebp + 0x14]
call fcn.004791e0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x4a7211
mov edi, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [edx + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 4]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x38]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [ebp + 0x18]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x38]
mov word [eax + ecx*4], 0x4f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edx]
cmp byte [eax + 0x45], 0
jne 0x4a7227
mov eax, dword [edx + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 4]
mov byte [eax + ecx*4 - 0x11], 0x90
mov cl, byte [ebp + 0x20]
mov eax, dword [esp + 0x18]
cmp esi, 5
jne 0x4a72c4
cmp cl, 5
je 0x4a72c4
mov eax, dword [eax + 8]
test eax, eax
je 0x4a72c4
mov cl, byte [eax + 0x36]
cmp cl, 4
je 0x4a725d
cmp cl, 3
je 0x4a725d
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4a7247
jmp 0x4a72c4
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x20]
mov dword [esp + 0x3c], ecx
cmp dword [eax + 0x58], ecx
jg 0x4a728d
mov ecx, dword [esp + 0x10]
mov edx, 0xd
push 0
push 0
push 0
call fcn.004791e0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x3c], eax
jmp 0x4a72c4
lea eax, [ecx + 1]
mov dword [edx + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 4]
mov word [eax + ecx*4], 0xd
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 eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4a72ea
push dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x14]
push edi
push edx
mov edx, 0x46
call fcn.004791e0
add esp, 0xc
jmp 0x4a731b
lea eax, [ecx + 1]
mov dword [edx + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 4]
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x14]
mov word [eax + ecx*4], 0x46
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
lea eax, [esi - 1]
cmp eax, 4
ja case.default.0x4a7327
jmp dword [eax*4 + 0x4a83ec]
mov eax, dword [esp + 0x40]
xor edi, edi
test dword [eax + 0x18], 0x40000
je 0x4a737f
mov ecx, dword [esp + 0x14]
xor esi, esi
xor edx, edx
mov eax, dword [ecx]
test dword [eax + 0x18], 0x800000
je 0x4a735b
mov edx, dword [esp + 0x18]
call fcn.004b9960
mov edx, eax
mov ecx, edx
test edx, edx
je 0x4a7374
cmp byte [ecx + 8], 0x6d
jne 0x4a736d
movzx eax, byte [ecx + 9]
or esi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x4a7361
xor edi, edi
test esi, esi
cmovne edi, edx
test edi, edi
jne 0x4a73fd
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
test dword [eax + 0x18], 0x80000
je 0x4a73bb
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x40]
mov edx, dword [eax]
add ecx, 0x38
call fcn.0045e2b0
add esp, 4
test eax, eax
je 0x4a73b1
cmp dword [eax + 8], 0
jne 0x4a7401
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x10], 0
jne 0x4a7401
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
je 0x4a73ec
mov eax, dword [esi + 0x1a0]
mov ecx, esi
test eax, eax
mov edx, edi
push 0xffffffffffffffff
cmovne ecx, eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov byte [ecx + 0x14], 1
mov ecx, esi
call fcn.0049f200
add esp, 0x10
mov edi, dword [esp + 0x38]
mov dword [esp + 0x44], 1
jmp 0x4a74b5
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x1a0]
mov ecx, esi
mov edx, dword [esp + 0x18]
test eax, eax
push 0xffffffffffffffff
push 1
push 5
push 0
push 1
push dword [ebp + 0x14]
cmovne ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov byte [ecx + 0x14], 1
mov ecx, esi
push edi
call fcn.0049ede0
mov edi, dword [esp + 0x5c]
add esp, 0x24
mov dword [esp + 0x44], 1
jmp 0x4a74b5
mov edx, dword [ebp + 0x24]
mov ecx, dword [esp + 0x10]
call fcn.004793e0
jmp 0x4a74b5
mov esi, 2
mov edx, dword [esp + 0x18]
movzx eax, word [edx + 0x20]
test ax, ax
js 0x4a7489
movsx ecx, ax
mov eax, dword [edx + 4]
add ecx, ecx
push dword [eax + ecx*8]
mov eax, dword [esp + 0x18]
push dword [edx]
push str._s._s
push dword [eax]
call fcn.0045bbf0
add esp, 0x10
mov edx, 0x613
jmp 0x4a74a3
push dword [edx]
mov eax, dword [esp + 0x18]
push str._s.rowid
push dword [eax]
call fcn.0045bbf0
add esp, 0xc
mov edx, 0xa13
mov ecx, dword [esp + 0x14]
push 2
push 0xffffffffffffffff
push eax
push esi
call fcn.0049cae0
add esp, 0x10
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x4a74d7
lea eax, [edi*4 + 4]
mov edi, dword [esp + 0x10]
sub ecx, eax
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
jmp 0x4a74db
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x20]
dec eax
cmp dword [esp + 0x3c], 0
mov dword [edx + 0x60], eax
je 0x4a758d
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
mov dword [esp + 0x50], esi
cmp dword [eax + 0x58], esi
jg 0x4a7517
push 0
push 0
push 0
mov edx, 0xd
mov ecx, edi
call fcn.004791e0
add esp, 0xc
mov dword [esp + 0x50], eax
jmp 0x4a754e
lea eax, [esi + 1]
mov dword [edi + 0x20], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0xd
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 eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
dec ecx
mov dword [eax + 0x60], ecx
mov eax, dword [esp + 0x3c]
mov ecx, eax
mov edx, dword [edi + 0x20]
test eax, eax
jns 0x4a7568
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
je 0x4a757a
mov eax, 0x5a2a64
mov dword [eax + 8], edx
jmp 0x4a758d
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x4a758d
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], 0
mov eax, dword [ecx + 8]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4a8323
mov esi, dword [ebp + 8]
xor edx, edx
lea ecx, [ecx]
cmp dword [esi + edx*4], 0
je 0x4a830f
cmp byte [esp + 0xd], 0
jne 0x4a75d7
mov eax, dword [ebp + 0x14]
mov edx, ecx
inc eax
mov ecx, edi
push eax
call fcn.004a5570
add esp, 4
mov byte [esp + 0xd], 1
mov esi, dword [edi + 0x18]
mov ecx, dword [esp + 0x20]
mov edi, dword [esi + 0x74]
lea eax, [edi + 1]
mov dword [esi + 0x74], eax
lea eax, [edi - 1]
test edi, eax
jne 0x4a760c
mov edx, dword [esi + 0x78]
lea eax, [edi*8 + 4]
mov ecx, dword [esi]
push 0
push eax
call fcn.0045a1b0
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4a761a
mov dword [eax + edi*4], 0xffffffff
or eax, 0xffffffff
sub eax, edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
cmp dword [edi + 0x24], 0
je 0x4a77d3
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x10]
mov edx, dword [eax + ecx*4]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4a765c
push 0
push edx
push 0
mov edx, 0x19
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4a768f
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
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
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x14]
inc eax
push 0
mov esi, dword [ecx]
mov dword [ecx + 0x64], eax
mov ecx, esi
mov edx, dword [edi + 0x24]
push 0
call fcn.0048dd10
add esp, 8
mov edi, eax
cmp byte [esi + 0x45], 0
jne 0x4a76c9
mov ecx, dword [esp + 0x14]
mov edx, edi
push 0x10
push dword [esp + 0x34]
call fcn.004925d0
add esp, 8
test edi, edi
je 0x4a77c6
test dword [edi + 4], 0x4000
jne 0x4a7764
mov edx, dword [edi + 0xc]
mov ecx, esi
call fcn.0048dbe0
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.0048dbe0
test dword [edi + 4], 0x10000
je 0x4a7745
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4a7745
cmp dword [esi + 0x1c8], 0
je 0x4a7716
mov edx, ecx
mov ecx, esi
call fcn.00459cc0
jmp 0x4a7745
cmp ecx, dword [esi + 0x120]
jb 0x4a773c
cmp ecx, dword [esi + 0x124]
jae 0x4a773c
mov eax, dword [esi + 0x11c]
mov dword [ecx], eax
dec dword [esi + 0x108]
mov dword [esi + 0x11c], ecx
jmp 0x4a7745
push ecx
call fcn.00459c50
add esp, 4
test dword [edi + 4], 0x800
mov ecx, esi
mov edx, dword [edi + 0x14]
je 0x4a775f
push 1
call fcn.004ae290
add esp, 4
jmp 0x4a7764
call fcn.0048e9f0
test dword [edi + 4], 0x8000
jne 0x4a77c6
cmp dword [esi + 0x1c8], 0
je 0x4a778c
mov edx, edi
mov ecx, esi
call fcn.00459cc0
mov edi, dword [esp + 0x14]
mov dword [edi + 0x64], 0
jmp 0x4a77d7
cmp edi, dword [esi + 0x120]
jb 0x4a77bd
cmp edi, dword [esi + 0x124]
jae 0x4a77bd
mov eax, dword [esi + 0x11c]
mov dword [edi], eax
dec dword [esi + 0x108]
mov dword [esi + 0x11c], edi
mov edi, dword [esp + 0x14]
mov dword [edi + 0x64], 0
jmp 0x4a77d7
push edi
call fcn.00459c50
add esp, 4
mov edi, dword [esp + 0x14]
mov dword [edi + 0x64], 0
jmp 0x4a77d7
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [edi + 0x3c]
mov esi, dword [edi + 0x40]
mov dword [esp + 0x28], esi
movzx ecx, word [eax + 0x34]
cmp ecx, edx
jg 0x4a77fa
lea eax, [esi + ecx]
sub edx, ecx
mov dword [edi + 0x40], eax
mov dword [edi + 0x3c], edx
jmp 0x4a7809
mov eax, dword [edi + 0x4c]
lea esi, [eax + 1]
add eax, ecx
mov dword [esp + 0x28], esi
mov dword [edi + 0x4c], eax
mov eax, dword [esp + 0x1c]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x48], ecx
cmp dx, word [eax + 0x34]
jae 0x4a7bf5
mov edx, esi
xor esi, esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], esi
jmp 0x4a7830
mov eax, dword [eax + 4]
movsx ecx, word [eax + ecx*2]
cmp ecx, 0xfffffffe
jne 0x4a7b2d
mov eax, dword [ebp + 0x14]
inc eax
mov dword [edi + 0x64], eax
mov eax, dword [esp + 0x1c]
mov edi, dword [edi]
mov ecx, edi
push 0
push 0
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 4]
mov edx, dword [esi + eax]
call fcn.0048dd10
add esp, 8
mov esi, eax
cmp byte [edi + 0x45], 0
jne 0x4a7956
test esi, esi
je 0x4a78cb
cmp byte [esi], 0x9d
jne 0x4a78cb
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov dword [esp + 0x5c], ecx
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x20]
cmp dword [eax + 0x58], edx
jg 0x4a78b3
mov edx, dword [esp + 0x4c]
push 0
push dword [esp + 0x30]
push edx
mov edx, 0x1e
call fcn.004791e0
add esp, 0xc
jmp 0x4a7956
lea eax, [edx + 1]
mov dword [ecx + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 4]
mov word [eax + ecx*4], 0x1e
jmp 0x4a7931
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, esi
call fcn.00490cc0
add esp, 4
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x2c]
je 0x4a7956
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov dword [esp + 0x5c], ecx
test ecx, ecx
je 0x4a7956
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x20]
cmp dword [eax + 0x58], edx
jg 0x4a791b
mov edx, dword [esp + 0x4c]
push 0
push dword [esp + 0x30]
push edx
mov edx, 0x1f
call fcn.004791e0
add esp, 0xc
jmp 0x4a7956
lea eax, [edx + 1]
mov dword [ecx + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 4]
mov word [eax + ecx*4], 0x1f
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], edx
mov byte [eax + ecx*4 + 3], 0
test esi, esi
je 0x4a7b19
test dword [esi + 4], 0x4000
jne 0x4a7a56
mov edx, dword [esi + 0xc]
mov ecx, edi
call fcn.0048dbe0
mov edx, dword [esi + 0x10]
mov ecx, edi
call fcn.0048dbe0
test dword [esi + 4], 0x10000
je 0x4a7a37
mov ecx, dword [esi + 8]
mov dword [esp + 0x4c], ecx
test ecx, ecx
je 0x4a7a37
cmp dword [edi + 0x1c8], 0
je 0x4a79b2
mov edx, ecx
mov ecx, edi
call fcn.00459cc0
jmp 0x4a7a37
cmp ecx, dword [edi + 0x120]
jb 0x4a79d8
cmp ecx, dword [edi + 0x124]
jae 0x4a79d8
mov eax, dword [edi + 0x11c]
mov dword [ecx], eax
dec dword [edi + 0x108]
mov dword [edi + 0x11c], ecx
jmp 0x4a7a37
cmp dword [0x58c138], 0
je 0x4a7a2d
mov eax, dword [0x5a22a8]
test eax, eax
je 0x4a79f8
push eax
call dword [0x58c190]
mov ecx, dword [esp + 0x50]
add esp, 4
push ecx
call dword [0x58c16c]
sub dword [0x5a22e8], eax
add esp, 4
dec dword [0x5a230c]
push dword [esp + 0x4c]
call dword [0x58c164]
mov eax, dword [0x5a22a8]
add esp, 4
test eax, eax
je 0x4a7a37
push eax
call dword [0x58c198]
jmp 0x4a7a34
push ecx
call dword [0x58c164]
add esp, 4
test dword [esi + 4], 0x800
mov ecx, edi
mov edx, dword [esi + 0x14]
je 0x4a7a51
push 1
call fcn.004ae290
add esp, 4
jmp 0x4a7a56
call fcn.0048e9f0
test dword [esi + 4], 0x8000
jne 0x4a7b19
cmp dword [edi + 0x1c8], 0
je 0x4a7a89
mov edx, esi
mov ecx, edi
call fcn.00459cc0
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov dword [edi + 0x64], 0
jmp 0x4a7bca
cmp esi, dword [edi + 0x120]
jb 0x4a7ac1
cmp esi, dword [edi + 0x124]
jae 0x4a7ac1
mov eax, dword [edi + 0x11c]
mov edx, dword [esp + 0x2c]
mov dword [esi], eax
dec dword [edi + 0x108]
mov dword [edi + 0x11c], esi
mov edi, dword [esp + 0x14]
mov dword [edi + 0x64], 0
jmp 0x4a7bca
cmp dword [0x58c138], 0
je 0x4a7b0f
mov eax, dword [0x5a22a8]
test eax, eax
je 0x4a7add
push eax
call dword [0x58c190]
add esp, 4
push esi
call dword [0x58c16c]
sub dword [0x5a22e8], eax
add esp, 4
dec dword [0x5a230c]
push esi
call dword [0x58c164]
mov eax, dword [0x5a22a8]
add esp, 4
test eax, eax
je 0x4a7b19
push eax
call dword [0x58c198]
jmp 0x4a7b16
push esi
call dword [0x58c164]
add esp, 4
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov dword [edi + 0x64], 0
jmp 0x4a7bca
cmp ecx, 0xffffffff
je 0x4a7b46
mov eax, dword [esp + 0x18]
movsx eax, word [eax + 0x20]
cmp ecx, eax
je 0x4a7b46
mov esi, dword [ebp + 0x14]
inc esi
add esi, ecx
jmp 0x4a7b63
cmp dword [esp + 0x54], edx
je 0x4a7bca
mov eax, dword [esp + 0x1c]
mov esi, dword [ebp + 0x14]
cmp dword [eax + 0x24], 0
mov eax, 0xffffffff
cmovne edx, eax
mov dword [esp + 0x54], edx
mov edi, dword [esp + 0x10]
xor edx, edx
test ecx, ecx
sets dl
mov eax, dword [edi + 0x18]
add edx, 0x1f
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4a7b93
push 0
push dword [esp + 0x30]
mov ecx, edi
push esi
call fcn.004791e0
mov edx, dword [esp + 0x38]
add esp, 0xc
jmp 0x4a7bc6
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov byte [eax + ecx*4], dl
mov edx, dword [esp + 0x2c]
mov byte [eax + ecx*4 + 3], 0
lea eax, [eax + ecx*4]
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc edx
mov ecx, dword [esp + 0x48]
add dword [esp + 0x38], 0x18
inc ecx
mov esi, dword [esp + 0x38]
movzx eax, word [eax + 0x34]
cmp ecx, eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
jl 0x4a7830
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 8]
movzx esi, word [eax + 0x34]
mov eax, dword [edi + 0x18]
mov edx, dword [edx + ecx*4]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4a7c29
push edx
push esi
push dword [esp + 0x30]
mov edx, 0x31
mov ecx, edi
call fcn.004791e0
add esp, 0xc
jmp 0x4a7c5c
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov edi, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x10]
mov word [eax + ecx*4], 0x31
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
movzx eax, word [eax + 0x34]
push eax
call fcn.00490680
mov eax, dword [esp + 0x20]
add esp, 4
cmp byte [esp + 0xc], 0
je 0x4a7cb4
cmp dword [esp + 0x24], eax
jne 0x4a7cb4
cmp byte [ebp + 0x1c], 0
jne 0x4a7cb4
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x4a7ca8
mov eax, dword [esp + 0x30]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
dec eax
mov dword [edx + 0x60], eax
jmp 0x4a8300
movzx esi, byte [eax + 0x36]
test esi, esi
jne 0x4a7ce6
movzx esi, word [eax + 0x34]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push esi
call fcn.00490680
mov eax, dword [esp + 0x18]
add esp, 4
cmp esi, dword [eax + 0x3c]
jle 0x4a7c8c
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x3c], esi
mov dword [eax + 0x40], ecx
jmp 0x4a7c8c
mov cl, byte [ebp + 0x20]
cmp cl, 0xa
je 0x4a7cf3
movzx esi, cl
jmp 0x4a7cfe
cmp esi, 0xa
mov ecx, 2
cmove esi, ecx
movzx eax, word [eax + 0x32]
mov edx, 0x43
push eax
push dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, edi
push dword [esp + 0x38]
add eax, dword [ebp + 0x10]
push eax
mov dword [esp + 0x6c], esi
call fcn.004797e0
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jne 0x4a7d3c
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
jmp 0x4a7d89
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x40]
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x34], ecx
jg 0x4a7d6c
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
add eax, edx
sub ecx, dword [esp + 0x34]
mov dword [edi + 0x40], eax
mov eax, edi
mov edi, dword [esp + 0x10]
mov dword [eax + 0x3c], ecx
jmp 0x4a7d81
mov eax, dword [eax + 0x4c]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 1]
add eax, dword [esp + 0x34]
mov dword [esp + 0x2c], edx
mov dword [ecx + 0x4c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
cmp byte [esp + 0xc], 0
jne 0x4a7d99
cmp esi, 5
jne 0x4a815d
mov esi, dword [esp + 0x18]
test byte [esi + 0x2a], 0x20
jne 0x4a7e94
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4a7dd2
mov eax, dword [esp + 0x20]
mov ecx, edi
add eax, dword [ebp + 0x10]
push 0
push edx
push eax
mov edx, 0x71
call fcn.004791e0
mov edx, dword [esp + 0x38]
add esp, 0xc
jmp 0x4a7e10
mov esi, dword [esp + 0x20]
lea eax, [ecx + 1]
add esi, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov edx, dword [esp + 0x2c]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 4]
mov edi, dword [esp + 0x10]
mov word [eax + ecx*4], 0x71
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0xc], 0
je 0x4a815d
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4a7e3f
push dword [ebp + 0x18]
mov ecx, edi
push dword [esp + 0x34]
push edx
mov edx, 0x4f
call fcn.004791e0
add esp, 0xc
jmp 0x4a7e71
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x18]
mov word [eax + ecx*4], 0x4f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
mov esi, dword [esp + 0x1c]
cmp byte [eax + 0x45], 0
jne 0x4a8161
mov eax, dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov byte [eax + ecx*4 - 0x11], 0x90
jmp 0x4a8161
cmp eax, ecx
je 0x4a7f88
xor edi, edi
xor esi, esi
cmp di, word [ecx + 0x32]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x48], esi
jae 0x4a7f88
mov dword [esp + 0x38], edx
jmp 0x4a7ec4
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + 0x34]
xor ecx, ecx
test edx, edx
jle 0x4a7eed
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
movzx esi, word [eax + esi*2]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
cmp si, word [eax]
je 0x4a7f21
inc ecx
add eax, 2
cmp ecx, edx
jl 0x4a7ee0
or eax, 0xffffffff
mov ecx, dword [edi + 0x20]
movsx edx, ax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x58], edx
cmp dword [eax + 0x58], ecx
jg 0x4a7f26
mov esi, dword [esp + 0x38]
mov ecx, edi
mov eax, dword [esp + 0x20]
add eax, dword [ebp + 0x10]
push esi
push edx
push eax
mov edx, 0x2f
call fcn.004791e0
add esp, 0xc
jmp 0x4a7f64
movzx eax, cx
jmp 0x4a7ef0
mov esi, dword [esp + 0x20]
lea eax, [ecx + 1]
add esi, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov edx, dword [esp + 0x58]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 4]
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x38]
mov word [eax + ecx*4], 0x2f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x24]
inc esi
mov ecx, dword [esp + 0x48]
inc ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], ecx
mov esi, ecx
movzx eax, word [eax + 0x32]
cmp ecx, eax
jl 0x4a7ec0
mov ecx, dword [esp + 0x24]
cmp byte [esp + 0xc], 0
mov esi, dword [esp + 0x1c]
je 0x4a8161
movzx ecx, word [ecx + 0x32]
mov eax, dword [edi + 0x20]
mov edx, dword [esp + 0x2c]
add eax, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x38]
and al, 3
mov dword [esp + 0x48], 0x4e
cmp al, 2
cmove edx, dword [esp + 0x28]
mov dword [esp + 0x58], edx
xor edx, edx
mov dword [esp + 0x38], edx
test ecx, ecx
jle 0x4a8161
mov edi, edi
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x20]
mov edi, dword [eax + edx*4]
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
mov dl, byte [esi + 0x42]
mov cl, byte [esi + 0x95]
mov byte [esp + 0xf], dl
mov byte [esp + 0xe], cl
test edi, edi
je 0x4a8011
movzx eax, cl
mov edx, edi
push eax
mov ecx, esi
call fcn.0049d820
mov cl, byte [esp + 0x12]
add esp, 4
mov dl, byte [esp + 0xf]
mov esi, eax
jmp 0x4a8014
mov esi, dword [esi + 8]
test esi, esi
je 0x4a8024
movzx eax, dl
lea eax, [eax + eax*4]
lea esi, [esi + eax*4]
add esi, 0xffffffec
test cl, cl
jne 0x4a8042
test esi, esi
je 0x4a8032
cmp dword [esi + 0xc], 0
jne 0x4a8042
mov ecx, dword [esp + 0x14]
push edi
push esi
call fcn.0049d730
add esp, 8
mov esi, eax
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov ecx, dword [edi + 4]
movsx eax, word [ecx + edx*2]
movzx ecx, word [edi + 0x32]
dec ecx
cmp edx, ecx
jne 0x4a806a
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], 0x4f
mov ecx, dword [esp + 0x10]
mov edi, dword [ebp + 0x18]
inc edi
add edi, eax
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x20]
cmp dword [eax + 0x58], edx
jg 0x4a809f
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x58]
mov edx, dword [esp + 0x48]
push eax
push dword [esp + 0x50]
push edi
mov edi, ecx
call fcn.004791e0
add esp, 0xc
mov edx, eax
jmp 0x4a80e2
lea eax, [edx + 1]
mov dword [ecx + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x10]
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x48]
mov dword [ecx + 0x10], 0
mov byte [ecx], al
mov eax, dword [esp + 0x4c]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x58]
mov dword [ecx + 0xc], eax
mov byte [ecx + 1], 0
mov ecx, dword [edi]
cmp byte [ecx + 0x45], 0
je 0x4a80fa
push esi
mov edx, 0xfffffffc
call fcn.00479ca0
add esp, 4
jmp 0x4a812e
test edx, edx
jns 0x4a8102
mov edx, dword [edi + 0x20]
dec edx
mov eax, dword [edi + 4]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4a8123
push 0xfffffffffffffffc
push esi
mov edx, eax
mov ecx, edi
call fcn.00479ec0
add esp, 8
jmp 0x4a812e
test esi, esi
je 0x4a812e
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xfc
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
jne 0x4a8144
mov eax, dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov byte [eax + ecx*4 - 0x11], 0x90
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
inc edx
mov dword [esp + 0x38], edx
movzx eax, word [eax + 0x32]
cmp edx, eax
jl 0x4a7fd0
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x5c]
test edx, edx
jle 0x4a81e6
cmp edx, 3
jle 0x4a81d4
cmp edx, 4
jne 0x4a81e6
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4a8199
push 0
push dword [ebp + 0x24]
mov edx, 0xd
mov ecx, edi
push 0
call fcn.004791e0
add esp, 0xc
jmp 0x4a828a
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0xd
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
jmp 0x4a828a
mov ecx, dword [esp + 0x14]
push esi
call fcn.0049cb80
add esp, 4
jmp 0x4a828a
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, dword [ecx + 0x1a0]
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0x40]
mov byte [ecx + 0x14], 1
test dword [eax + 0x18], 0x40000
je 0x4a824e
mov ecx, dword [esp + 0x14]
xor esi, esi
xor edi, edi
mov eax, dword [ecx]
test dword [eax + 0x18], 0x800000
je 0x4a8226
mov edx, dword [esp + 0x18]
call fcn.004b9960
mov edi, eax
mov ecx, edi
test edi, edi
je 0x4a8243
lea esp, [esp]
cmp byte [ecx + 8], 0x6d
jne 0x4a823c
movzx eax, byte [ecx + 9]
or esi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x4a8230
xor edx, edx
test esi, esi
mov esi, dword [esp + 0x1c]
cmovne edx, edi
cmp esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
sete al
movzx eax, al
push eax
push 5
push 0
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
mov edx, dword [esp + 0x3c]
call fcn.0049ede0
mov edi, dword [esp + 0x34]
add esp, 0x24
mov dword [esp + 0x44], 1
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x4a82a6
mov eax, dword [esp + 0x30]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x14]
dec eax
mov dword [edx + 0x60], eax
movzx esi, word [esi + 0x34]
mov edx, dword [esp + 0x28]
push esi
call fcn.00490680
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x28]
cmp esi, dword [eax + 0x3c]
jle 0x4a82d5
mov dword [eax + 0x3c], esi
mov dword [eax + 0x40], ecx
mov esi, dword [esp + 0x2c]
cmp esi, ecx
je 0x4a8300
push dword [esp + 0x34]
mov edx, esi
mov ecx, eax
call fcn.00490680
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x34]
cmp ecx, dword [eax + 0x3c]
jle 0x4a8300
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov esi, dword [ebp + 8]
mov eax, dword [eax + 0x14]
inc edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
test eax, eax
jne 0x4a75b0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4a83ca
mov ecx, dword [edi + 0x20]
lea esi, [eax + 1]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x4a8353
push 0
push esi
push 0
mov edx, 0xd
mov ecx, edi
call fcn.004791e0
add esp, 0xc
jmp 0x4a8386
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x50]
mov edx, dword [edi + 0x20]
test ecx, ecx
jns 0x4a839e
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
je 0x4a83bd
mov ecx, dword [esp + 0x44]
mov eax, 0x5a2a64
mov dword [eax + 8], edx
mov eax, dword [ebp + 0x28]
mov dword [eax], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret