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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x4f3070]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, ecx
mov byte [esp + 7], 0
mov ecx, dword [ebp + 8]
push ebx
mov dword [esp + 0x1c], ecx
mov ebx, dword [eax + 8]
mov ecx, dword [ebp + 0x14]
push esi
mov esi, edx
mov dword [esp + 0x3c], ecx
mov edx, dword [ebx + 0x6c]
xor ecx, ecx
push edi
mov dword [esp + 0x64], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x68], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x6c], edx
cmp dword [ebx + 0x70], edx
jg 0x495adb
push ecx
push ecx
push ecx
lea edx, [ecx + 0x11]
mov ecx, ebx
call fcn.004396f0
add esp, 0xc
mov dword [esp + 0x6c], eax
jmp 0x495b0e
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x11
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 ebx, dword [esp + 0x24]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x40]
xor edi, edi
mov esi, dword [esi + 0x14]
movlpd qword [esp + 0x48], xmm0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ecx + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
shl eax, 4
add eax, esi
mov dword [esp + 0x60], eax
cmp esi, eax
jae 0x495dad
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], eax
nop dword [eax]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
mov edi, dword [esi]
jne 0x495bf2
test byte [esi + 0xa], 2
jne 0x495bf2
test byte [edi + 4], 1
jne 0x495bf2
mov eax, 3
mov dword [esp + 0x74], fcn.004528b0
mov word [esp + 0x84], ax
lea ecx, [esp + 0x70]
mov eax, dword [ebx + 0x2c]
mov edx, edi
mov dword [esp + 0x78], 0x452740
mov dword [esp + 0x88], eax
call fcn.0044d840
cmp word [esp + 0x84], 0
je 0x495bea
mov ebx, dword [esp + 0x18]
mov edx, edi
push 0
push 0
mov ecx, dword [ebx]
call fcn.00451690
mov edx, dword [esp + 0x60]
mov ecx, ebx
push eax
call fcn.00451160
mov ebx, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x14]
cmp eax, dword [ebx + 0x2c]
jne 0x495d96
movzx ecx, word [esi + 0xc]
test cl, 0x82
je 0x495d92
test byte [ebx + 0x24], 8
je 0x495c21
mov eax, dword [esi]
test byte [eax + 4], 1
jne 0x495c21
test cl, cl
js 0x495d92
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
and ecx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
or ecx, eax
jne 0x495d92
mov eax, dword [esi + 0x18]
test eax, eax
js 0x495d92
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
mov bl, byte [eax + ecx*4 + 0xd]
mov ecx, dword [esi]
call fcn.00450620
cmp al, 0x42
jl 0x495c74
jne 0x495c64
xor eax, eax
cmp bl, 0x42
sete al
jmp 0x495c6c
xor eax, eax
cmp bl, 0x43
setge al
test eax, eax
je 0x495d8a
mov ecx, dword [esi + 0x18]
xor edi, edi
cmp ecx, 0x40
jl 0x495c85
mov ebx, 0x80000000
jmp 0x495c9a
mov eax, ecx
xor ebx, ebx
bts edi, eax
cmp eax, 0x20
cmovae ebx, edi
xor edi, ebx
cmp eax, 0x40
cmovae ebx, edi
cmp byte [esp + 0x13], 0
jne 0x495cc7
mov edx, dword [esp + 0x34]
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 4]
push dword [eax + ecx*4]
push dword [edx]
push str.automatic_index_on__s__s_
push 0x11c
call fcn.00419f50
add esp, 0x10
mov byte [esp + 0x13], 1
mov edx, dword [esp + 0x2c]
mov ecx, edi
and ecx, dword [esp + 0x3c]
mov eax, ebx
and eax, edx
or ecx, eax
jne 0x495d8e
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
movzx eax, word [edx + 0x2c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x38], ecx
cmp eax, edx
jge 0x495d63
lea eax, [edx + 7]
and eax, 0xfffffff8
mov dword [esp + 0x44], eax
shl eax, 2
push 0
push eax
call fcn.00417970
add esp, 8
mov dword [esp + 0x5c], eax
test eax, eax
je 0x49662f
mov edx, dword [esp + 0x1c]
movzx ecx, word [edx + 0x2c]
shl ecx, 2
push ecx
push dword [edx + 0x30]
push eax
call fcn.004b6940
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [ecx + 0x30]
lea eax, [ecx + 0x38]
cmp edx, eax
je 0x495d4e
mov ecx, dword [esp + 0x38]
call fcn.004175d0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x44]
mov word [ecx + 0x2c], ax
jmp 0x495d67
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x30]
inc edx
mov ecx, dword [esp + 0x28]
inc dword [esp + 0x28]
or dword [esp + 0x3c], edi
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x2c]
or edx, ebx
mov dword [eax + ecx*4], esi
mov dword [esp + 0x2c], edx
jmp 0x495d8e
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add esi, 0x30
cmp esi, dword [esp + 0x60]
jb 0x495b70
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
jmp 0x495db1
mov esi, dword [esp + 0x48]
mov word [ecx + 0x28], di
not esi
mov word [ecx + 0x18], di
not edx
mov dword [ecx + 0x24], 0x4241
or edx, 0x80000000
mov ecx, dword [esp + 0x34]
mov eax, dword [ebx + 0x38]
and esi, eax
mov ebx, dword [ebx + 0x3c]
and edx, ebx
mov dword [esp + 0x3c], esi
xor esi, esi
movzx edi, word [ecx + 0x2a]
mov ecx, 0x3f
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], edi
cmp cx, di
jge 0x495e02
mov dword [esp + 0x5c], ecx
jmp 0x495e0d
movsx ecx, di
mov dword [esp + 0x5c], ecx
test ecx, ecx
jle 0x495e4b
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x2c]
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x3c]
and ecx, edi
or edx, ecx
je 0x495e3a
inc dword [esp + 0x28]
inc esi
cmp esi, ebx
jl 0x495e15
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
test ebx, ebx
jg 0x495e65
jl 0x495e55
test eax, eax
jae 0x495e65
mov ecx, dword [esp + 0x28]
movsx eax, di
add ecx, 0xffffffc1
add ecx, eax
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x38]
mov esi, dword [esp + 0x18]
push eax
push 0
lea edx, [edx + 1]
mov ecx, dword [esi]
call fcn.00464550
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
je 0x496633
mov edx, dword [esp + 0x1c]
xor ebx, ebx
mov ecx, dword [esp + 0x34]
xorps xmm0, xmm0
mov dword [esp + 0x20], ebx
movlpd qword [esp + 0x48], xmm0
mov dword [edx + 0x20], eax
mov dword [eax], str.auto_index
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x64]
mov edi, dword [eax + 0x14]
mov dword [esp + 0x44], edi
cmp edi, dword [esp + 0x60]
jae 0x4960ab
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x48], eax
nop dword [eax]
mov eax, dword [edi + 0x14]
cmp eax, dword [edx + 0x2c]
jne 0x49609a
movzx ecx, word [edi + 0xc]
test cl, 0x82
je 0x49609a
test byte [edx + 0x24], 8
je 0x495f0f
mov eax, dword [edi]
test byte [eax + 4], 1
jne 0x495f0f
test cl, cl
js 0x49609a
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
and ecx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
or ecx, eax
jne 0x49609a
mov eax, dword [edi + 0x18]
test eax, eax
js 0x49609a
mov esi, dword [edi]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 4]
mov al, byte [eax + ecx*4 + 0xd]
mov ecx, dword [esi + 0xc]
mov byte [esp + 0x13], al
call fcn.00450250
mov ecx, dword [esi + 0x10]
mov bl, al
test ecx, ecx
je 0x495f8c
call fcn.00450250
cmp al, 0x40
jle 0x495fb4
cmp bl, 0x40
jle 0x495fac
cmp al, 0x43
jge 0x495f69
cmp bl, 0x43
jl 0x495f7b
xor eax, eax
cmp byte [esp + 0x13], 0x43
setge al
test eax, eax
je 0x496092
mov eax, dword [edi + 0x18]
xor edx, edx
cmp eax, 0x40
jl 0x495fd3
mov esi, 0x80000000
jmp 0x495fe6
test dword [esi + 4], 0x800
je 0x495fbc
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + 4]
call fcn.00450250
cmp al, 0x40
jle 0x495fb4
cmp bl, 0x40
jg 0x495f60
movsx ebx, al
or bl, 0x40
jmp 0x495fc0
movsx ebx, bl
or bl, 0x40
jmp 0x495fc0
test bl, bl
je 0x495f7b
cmp bl, 0x42
jl 0x495f7b
jne 0x495f69
xor eax, eax
cmp byte [esp + 0x13], 0x42
sete al
jmp 0x495f73
xor esi, esi
bts edx, eax
cmp eax, 0x20
cmovae esi, edx
xor edx, esi
cmp eax, 0x40
cmovae esi, edx
mov ebx, dword [esp + 0x38]
mov ecx, edx
and ecx, dword [esp + 0x48]
mov eax, esi
and eax, ebx
or ecx, eax
jne 0x496092
mov ecx, dword [esp + 0x30]
or ebx, esi
mov eax, dword [esp + 0x44]
mov edi, dword [edi]
or dword [esp + 0x48], edx
mov ecx, dword [ecx + 4]
mov ax, word [eax + 0x18]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x20]
mov word [ecx + ebx*2], ax
test dword [edi + 4], 0x200
je 0x496030
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
jmp 0x496036
mov esi, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
test dword [edx + 4], 0x100
je 0x496045
mov ecx, dword [esp + 0x18]
jmp 0x49606b
test esi, esi
je 0x496058
test dword [esi + 4], 0x100
je 0x496058
mov ecx, dword [esp + 0x18]
jmp 0x496069
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.00450400
test eax, eax
jne 0x496074
mov ecx, edi
mov edx, esi
call fcn.00450400
test eax, eax
je 0x496078
mov ecx, dword [eax]
jmp 0x49607d
mov ecx, 0x4e3f98
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
mov eax, dword [eax + 0x20]
mov dword [eax + ebx*4], ecx
inc ebx
mov dword [esp + 0x20], ebx
jmp 0x496096
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add edi, 0x30
mov dword [esp + 0x44], edi
cmp edi, dword [esp + 0x60]
jb 0x495ee0
mov edi, dword [esp + 0x5c]
xor esi, esi
test edi, edi
jle 0x4960f7
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x3c]
and ecx, dword [esp + 0x2c]
or edx, ecx
je 0x4960ee
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 4]
mov word [eax + ebx*2], si
mov eax, dword [ecx + 0x20]
mov dword [eax + ebx*4], 0x4e3f98
inc ebx
inc esi
cmp esi, edi
jl 0x4960b5
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 0x3c], 0
jg 0x496141
jl 0x496109
cmp dword [ecx + 0x38], 0
jae 0x496141
mov esi, dword [esp + 0x34]
mov eax, 0x3f
mov edx, dword [esp + 0x30]
cmp ax, word [esi + 0x2a]
jge 0x496145
mov ecx, eax
nop
mov eax, dword [edx + 4]
mov word [eax + ebx*2], cx
inc ecx
mov eax, dword [edx + 0x20]
mov dword [eax + ebx*4], 0x4e3f98
inc ebx
movsx eax, word [esi + 0x2a]
cmp ecx, eax
jl 0x496120
mov dword [esp + 0x20], ebx
jmp 0x496145
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
or ecx, 0xffffffff
mov edi, dword [esp + 0x18]
mov word [eax + ebx*2], cx
mov eax, dword [edx + 0x20]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
inc edx
mov dword [eax + ebx*4], 0x4e3f98
mov ebx, dword [esp + 0x14]
mov eax, dword [edi + 0x28]
mov dword [ecx + 8], eax
inc dword [edi + 0x28]
mov esi, dword [ecx + 8]
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x496193
push 0
push edx
push esi
mov edx, 0x63
mov ecx, ebx
call fcn.004396f0
add esp, 0xc
jmp 0x4961be
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x63
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
mov edx, dword [esp + 0x30]
mov ecx, edi
mov esi, dword [edi + 8]
call fcn.00466cd0
mov edx, eax
test edx, edx
je 0x4961fc
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
je 0x4961ea
push edx
mov edx, 0xfffffff7
call fcn.0043a4e0
add esp, 4
jmp 0x4961fc
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov edx, dword [esp + 0x40]
movzx eax, byte [edx + 0x34]
lea edi, [eax + eax*8]
mov eax, dword [esp + 0x64]
lea edi, [edi + 1]
mov eax, dword [eax]
mov eax, dword [eax + 4]
test byte [eax + edi*8 + 0x28], 0x10
lea edi, [eax + edi*8]
mov dword [esp + 0x34], edi
je 0x496310
mov esi, dword [esp + 0x14]
mov ebx, dword [edi + 0x1c]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x68], ecx
cmp dword [esi + 0x70], ecx
jg 0x496253
push 0
push 0
push 0
mov edx, 0x45
mov ecx, esi
call fcn.004396f0
add esp, 0xc
mov dword [esp + 0x68], eax
jmp 0x496286
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x45
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 [esi + 0x6c]
mov edx, dword [edi + 0x18]
cmp dword [esi + 0x70], ecx
jg 0x4962a6
push edx
push 0
push ebx
mov edx, 0xd
mov ecx, esi
call fcn.004396f0
add esp, 0xc
jmp 0x4962d1
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
mov esi, dword [esi + 0x6c]
cmp dword [ecx + 0x70], esi
jg 0x4962f3
push 0
push 0
push ebx
mov edx, 0xe
call fcn.004396f0
add esp, 0xc
mov esi, eax
jmp 0x496362
lea eax, [esi + 1]
mov dword [ecx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], ebx
jmp 0x49634a
mov esi, dword [ebx + 0x6c]
mov edx, dword [edx + 4]
cmp dword [ebx + 0x70], esi
jg 0x496333
push 0
push 0
push edx
mov edx, 0x25
mov ecx, ebx
call fcn.004396f0
add esp, 0xc
mov esi, eax
jmp 0x496362
lea eax, [esi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x25
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], 0
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x496390
dec dword [ebx + 0x38]
mov ecx, dword [ebx + 0x38]
push 0x10
push ecx
push eax
push ebx
mov dword [esp + 0x64], ecx
call fcn.00457c40
mov eax, dword [esp + 0x2c]
add esp, 0x10
or dword [eax + 0x24], 0x20000
mov al, byte [ebx + 0x13]
test al, al
jne 0x49639f
inc dword [ebx + 0x2c]
mov ebx, dword [ebx + 0x2c]
jmp 0x4963ae
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov ebx, dword [ebx + eax*4 + 0x98]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
push 0
push 0
push 0
push 0
push ebx
push dword [ecx + 4]
mov ecx, dword [esp + 0x30]
call fcn.00468f50
mov dword [esp + 0x50], eax
add esp, 0x18
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x6c]
cmp dword [eax + 0x70], ecx
jg 0x4963fa
push 0
push ebx
push edx
mov edx, 0x83
mov ecx, eax
call fcn.004396f0
add esp, 0xc
jmp 0x49642f
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], eax
mov eax, edi
mov edi, dword [esp + 0x34]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4], 0x83
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 edx, dword [esp + 0x14]
mov eax, dword [edx + 0x6c]
test eax, eax
jle 0x49644e
lea ecx, [eax + eax*4]
mov edi, 0x10
mov eax, dword [edx + 0x68]
mov word [eax + ecx*4 - 0x12], di
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x58], 0
je 0x496487
mov ecx, dword [edx + 0xc]
not dword [esp + 0x54]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x496476
push dword [esp + 0x54]
call fcn.00439f90
mov edx, dword [esp + 0x18]
add esp, 4
jmp 0x496487
mov edi, dword [esp + 0x54]
mov ecx, dword [ecx + 0x40]
mov eax, dword [edx + 0x6c]
mov dword [ecx + edi*4], eax
mov edi, dword [esp + 0x34]
test byte [edi + 0x28], 0x10
je 0x496543
mov ecx, dword [esp + 0x68]
test ecx, ecx
jns 0x49649d
mov ecx, dword [edx + 0x6c]
dec ecx
mov eax, dword [edx]
cmp byte [eax + 0x51], 0
je 0x4964ac
mov ecx, 0x4f66a4
jmp 0x4964b5
mov eax, dword [edx + 0x68]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x38]
mov edx, esi
add eax, dword [esp + 0x20]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
push dword [eax + 8]
push dword [edi + 0x20]
push dword [eax + 4]
call fcn.00495950
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [edx + 0x6c]
cmp dword [edx + 0x70], ecx
jg 0x49650a
mov ecx, dword [esp + 0x14]
mov edx, 0xb
push 0
push esi
push 0
call fcn.004396f0
add esp, 0xc
and dword [edi + 0x28], 0xffffffef
mov edi, dword [esp + 0x14]
jmp 0x4965bf
lea eax, [ecx + 1]
mov dword [edx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x68]
mov dword [eax + ecx*4], 0xb
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
and dword [edi + 0x28], 0xffffffef
mov edi, dword [esp + 0x14]
jmp 0x4965bf
mov eax, dword [esp + 0x40]
lea edx, [esi + 1]
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x6c]
cmp dword [eax + 0x70], ecx
jg 0x496570
push 0
push edx
push edi
mov edi, eax
mov edx, 5
mov ecx, edi
call fcn.004396f0
add esp, 0xc
jmp 0x4965a8
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
lea ecx, [ecx + ecx*4]
mov dword [edx + 0x6c], eax
mov eax, edx
lea edx, [esi + 1]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x4965bf
lea ecx, [eax + eax*4]
mov edx, 3
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [edi + 0x6c]
test esi, esi
jns 0x4965c9
lea esi, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4965d8
mov eax, 0x4f66a4
jmp 0x4965e1
mov eax, dword [edi + 0x68]
lea ecx, [esi + esi*4]
lea eax, [eax + ecx*4]
mov esi, dword [esp + 0x18]
mov dword [eax + 8], edx
test ebx, ebx
je 0x496600
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x496600
movzx eax, al
mov dword [esi + eax*4 + 0x98], ebx
inc byte [esi + 0x13]
mov ecx, dword [esp + 0x6c]
mov edx, dword [edi + 0x6c]
test ecx, ecx
jns 0x49660e
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x496620
mov eax, 0x4f66a4
mov dword [eax + 8], edx
jmp 0x496633
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x496633
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x496644
mov ecx, dword [esi]
mov edx, eax
call fcn.00451450
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b4119
mov esp, ebp
pop ebp
ret