Function at 0x4a9640
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov dword [esp + 4], ecx
mov ecx, dword [ecx + 8]
mov esi, edx
mov eax, dword [ecx + 0x6c]
mov dword [esp + 0x1c], ecx
cmp dword [ecx + 0x70], eax
jle 0x4a969e
lea edx, [eax + 1]
mov dword [ecx + 0x6c], edx
mov edx, dword [ecx + 0x68]
lea ecx, [eax + eax*4]
mov byte [edx + ecx*4], 0x11
mov dword [edx + ecx*4 + 0xd], 0
mov dword [edx + ecx*4 + 5], 0
mov dword [edx + ecx*4 + 1], 0
mov dword [edx + ecx*4 + 9], 0
mov dword [edx + ecx*4 + 0x10], 0
jmp 0x4a96b1
mov edx, 0x11
push 0
push 0
push 0
call fcn.0046c600
add esp, 0xc
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 0x14]
mov dword [esp + 0x50], esi
mov esi, dword [ecx + 0x10]
mov edx, dword [edx + 0x48]
lea edi, [eax + eax*2]
shl edi, 4
add edi, ebx
test eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edx
jle 0x4a99b6
lea eax, [edx + 0x38]
mov esi, 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 0x44], eax
jmp 0x4a974b
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
and eax, dword [ebp + 0xc]
and ecx, dword [ebp + 0x10]
or ecx, eax
je 0x4a983d
mov ecx, dword [ebp + 8]
nop word [eax + eax]
add ebx, 0x30
cmp ebx, edi
jae 0x4a99d0
mov eax, dword [edx]
or eax, dword [edx + 4]
jne 0x4a9800
test byte [ebx + 0xa], 2
jne 0x4a9800
mov edi, dword [ebx]
test byte [edi + 4], 1
jne 0x4a97ed
mov eax, dword [ecx + 0x28]
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x60]
mov edx, edi
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x70], 0xffffffff
movdqa xmmword [esp + 0x60], xmm0
mov word [esp + 0x74], 3
mov dword [esp + 0x64], 0x48d010
mov dword [esp + 0x68], 0x48d190
mov dword [esp + 0x78], eax
call fcn.0048d1b0
cmp word [esp + 0x74], 0
je 0x4a97e6
mov dword [esp + 0x30], esi
mov esi, dword [esp + 4]
mov edx, edi
mov ecx, dword [esi]
push 0
push 0
call fcn.0048fa30
add esp, 8
mov ecx, esi
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
push eax
call fcn.0047d8f0
add esp, 4
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 0x18]
nop word cs:[eax + eax]
nop dword [eax + eax]
mov eax, dword [ebx + 0x14]
cmp eax, dword [ecx + 0x28]
jne 0x4a9740
movzx eax, word [ebx + 0xc]
test al, 0x82
je 0x4a9740
test byte [ecx + 0x24], 8
je 0x4a9720
test al, al
jns 0x4a9720
mov eax, dword [ebx]
mov eax, dword [eax + 4]
and eax, 1
je 0x4a9740
jmp 0x4a9720
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
js 0x4a9734
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], ecx
lea ecx, [ecx + ecx*4]
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 4]
movsx edx, byte [eax + ecx*4 + 0xd]
mov ecx, dword [ebx]
call fcn.004b0a90
test eax, eax
je 0x4a98fc
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], esi
mov esi, 1
xor edi, edi
mov eax, 1
mov edx, 0
shld edi, eax, cl
shl esi, cl
test cl, 0x20
mov eax, 0x80000000
cmovne edi, esi
cmovne esi, edx
cmp ecx, 0x3f
cmovg esi, edx
cmovg edi, eax
cmp byte [esp + 0x28], 0
mov edx, dword [esp + 0x20]
jne 0x4a98d6
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
push dword [eax + edx*4]
push dword [ecx]
push str.automatic_index_on__s__s_
push 0x11c
call fcn.0041f100
mov edx, dword [esp + 0x30]
add esp, 0x10
mov eax, esi
mov ecx, edi
and eax, dword [esp + 0x10]
and ecx, dword [esp + 8]
or ecx, eax
je 0x4a9905
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov al, 1
mov dword [esp + 0x28], eax
jmp 0x4a9740
mov edx, dword [esp + 0x20]
jmp 0x4a9734
movzx eax, word [edx + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], edi
cmp ecx, eax
jge 0x4a9920
mov edi, dword [edx + 0x30]
mov al, 1
mov dword [esp + 0x28], eax
jmp 0x4a9994
mov al, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 4]
mov edi, dword [eax]
lea eax, [ecx + 8]
and eax, 0xfffffff8
mov dword [esp + 0x2c], eax
lea edx, [eax*4]
mov ecx, edi
push 0
call fcn.00435490
add esp, 4
test eax, eax
je 0x4a9f40
mov edx, dword [esp + 0x20]
movzx ecx, word [edx + 0x2c]
shl ecx, 2
push ecx
push dword [edx + 0x30]
mov dword [esp + 0x50], eax
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x30]
cmp edx, dword [esp + 0x44]
je 0x4a9981
mov ecx, edi
call fcn.004352c0
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x2c]
mov dword [edx + 0x30], edi
mov word [edx + 0x2c], ax
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 8]
or dword [esp + 0x10], esi
mov dword [edi + eax*4], ebx
mov edi, dword [esp + 0xc]
inc eax
mov esi, eax
or dword [esp + 8], edi
mov edi, dword [esp + 0x18]
jmp 0x4a9740
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], 0
xor esi, esi
mov word [edx + 0x28], si
mov word [edx + 0x18], si
mov dword [edx + 0x24], 0x4241
mov edx, dword [esp + 8]
mov eax, 0x80000000
xor ebx, ebx
mov edi, dword [ecx + 0x3c]
or edx, eax
add ebx, 0xffffffff
mov eax, 0x80000000
adc eax, 0xffffffff
xor ebx, dword [esp + 0x10]
mov dword [esp + 0xc], edi
xor eax, edx
and eax, edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
and ebx, dword [ecx + 0x38]
movsx ecx, word [eax + 0x2a]
mov eax, 0x3f
mov dword [esp + 0x10], ebx
cmp ecx, 0x40
mov dword [esp + 0x2c], ecx
cmovl eax, ecx
test ecx, ecx
mov dword [esp + 0x28], eax
jle 0x4a9b93
test eax, eax
mov ecx, 1
cmovg ecx, eax
cmp ecx, 4
jae 0x4a9a51
mov eax, ecx
mov edx, 1
xor ecx, ecx
jmp 0x4a9b50
movd xmm1, dword [esp + 8]
movd xmm0, ebx
movdqa xmm6, xmmword [0x50c1f0]
mov eax, ecx
and ecx, 0x7ffffffc
pxor xmm3, xmm3
punpckldq xmm0, xmm1
movdqa xmm1, xmmword [0x50c200]
pshufd xmm0, xmm0, 0x44
movdqa xmmword [esp + 0x30], xmm0
movd xmm0, esi
mov esi, ecx
nop dword [eax]
movdqa xmm2, xmm6
movdqa xmm4, xmm1
movdqa xmm7, xmm6
movdqa xmm5, xmm1
add esi, 0xfffffffc
punpckhdq xmm2, xmm3
punpckldq xmm7, xmm3
psllq xmm4, xmm2
movdqa xmm2, xmm6
paddd xmm6, xmmword [0x50c210]
psrldq xmm2, 0xc
psllq xmm5, xmm2
movdqa xmm2, xmm1
movsd xmm5, xmm4
psllq xmm2, xmm7
pshufd xmm4, xmm7, 0x4e
movdqa xmm7, xmm1
psllq xmm7, xmm4
movsd xmm7, xmm2
movapd xmm2, xmmword [esp + 0x30]
andpd xmm7, xmm2
andpd xmm5, xmm2
pcmpeqd xmm5, xmm3
pcmpeqd xmm7, xmm3
pshufd xmm2, xmm5, 0xb1
pshufd xmm4, xmm7, 0xb1
pand xmm2, xmm5
pcmpeqd xmm5, xmm5
pand xmm4, xmm7
pxor xmm2, xmm5
pxor xmm4, xmm5
packssdw xmm4, xmm2
psubd xmm0, xmm4
jne 0x4a9a90
pshufd xmm1, xmm0, 0x4e
mov ebx, dword [esp + 0x10]
cmp eax, ecx
mov edx, 1
paddd xmm1, xmm0
pshufd xmm0, xmm1, 0xe5
paddd xmm0, xmm1
movd esi, xmm0
je 0x4a9b93
nop word cs:[eax + eax]
xor edi, edi
mov dword [esp + 0x30], esi
mov esi, 0
shld edi, edx, cl
mov edx, 1
shl edx, cl
test cl, 0x20
cmovne edi, edx
cmovne edx, esi
mov esi, dword [esp + 0x30]
and edi, dword [esp + 8]
and edx, ebx
mov ebx, eax
xor eax, eax
or edx, edi
mov edx, 1
setne al
inc ecx
add esi, eax
mov eax, ebx
mov ebx, dword [esp + 0x10]
cmp eax, ecx
jne 0x4a9b50
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0xc], 0
mov edx, 1
mov ecx, dword [esp + 4]
lea eax, [eax - 0x3e]
mov ecx, dword [ecx]
cmovs edx, eax
add edx, esi
mov esi, edx
movsx eax, dx
mov dword [esp + 0x44], edx
shl esi, 0x10
mov ebx, esi
sar esi, 0xf
sar ebx, 0xe
add eax, esi
add ebx, 7
lea eax, [esi + eax + 9]
and ebx, 0xfffffff8
and eax, 0xfffffff8
test ecx, ecx
lea edi, [ebx + eax + 0x48]
je 0x4a9f2c
mov eax, edi
mov edx, edi
sar eax, 0x1f
push eax
call fcn.00435490
add esp, 4
test eax, eax
je 0x4a9f40
mov dword [esp + 0x30], esi
add esi, 2
push edi
push 0
push eax
mov edi, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [edi + 0x48]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0xc], edi
mov dword [edi + 0x20], eax
lea eax, [edi + ebx + 0x48]
mov ebx, dword [esp + 8]
add esi, eax
mov dword [edi + 8], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 4], esi
add esi, dword [esp + 0x30]
mov dword [esp + 0x30], 0
mov dword [edi + 0x1c], esi
mov word [edi + 0x34], ax
dec eax
mov word [edi + 0x32], ax
mov dword [ecx + 0x20], edi
mov ecx, dword [esp + 0x50]
mov dword [edi], str.auto_index
mov dword [edi + 0xc], edx
mov edi, dword [esp + 0x18]
mov esi, dword [ecx + 0x14]
mov ecx, dword [ebp + 8]
cmp esi, edi
jae 0x4a9dfa
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], 0
jmp 0x4a9cbb
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
and eax, dword [ebp + 0xc]
and ecx, dword [ebp + 0x10]
or ecx, eax
je 0x4a9ce1
mov ecx, dword [ebp + 8]
nop word cs:[eax + eax]
nop dword [eax]
add esi, 0x30
cmp esi, edi
jae 0x4a9dfa
mov eax, dword [esi + 0x14]
cmp eax, dword [ecx + 0x28]
jne 0x4a9cb0
movzx eax, word [esi + 0xc]
test al, 0x82
je 0x4a9cb0
test byte [ecx + 0x24], 8
je 0x4a9c90
test al, al
jns 0x4a9c90
mov eax, dword [esi]
mov eax, dword [eax + 4]
and eax, 1
je 0x4a9cb0
jmp 0x4a9c90
mov ebx, dword [esi + 0x1c]
test ebx, ebx
js 0x4a9d7e
mov eax, dword [ebp + 8]
lea ecx, [ebx + ebx*4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 4]
movsx edx, byte [eax + ecx*4 + 0xd]
mov ecx, dword [esi]
mov dword [esp + 0x58], ecx
call fcn.004b0a90
test eax, eax
je 0x4a9d7e
xor edx, edx
mov ecx, ebx
mov edi, 1
mov eax, 1
shld edx, eax, cl
shl edi, cl
test bl, 0x20
mov ecx, 0
mov eax, 0x80000000
cmovne edx, edi
cmovne edi, ecx
cmp ebx, 0x3f
cmovg edx, eax
cmovg edi, ecx
mov eax, edx
mov ecx, edi
and eax, dword [esp + 0x4c]
and ecx, dword [esp + 0x48]
or ecx, eax
jne 0x4a9dea
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x54], edx
mov eax, dword [eax + 4]
mov word [eax + ecx*2], bx
mov eax, dword [esp + 0x58]
test byte [eax + 5], 2
jne 0x4a9d8a
mov edx, dword [eax + 0xc]
test byte [edx + 5], 1
jne 0x4a9db5
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x4a9d9a
jmp 0x4a9da0
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 8]
jmp 0x4a9cb0
mov edx, dword [eax + 0x10]
test byte [edx + 5], 1
jne 0x4a9db5
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x4a9da0
test byte [ebx + 5], 1
jne 0x4a9dad
mov ecx, dword [esp + 4]
call fcn.0046dea0
test eax, eax
jne 0x4a9dc2
mov ecx, dword [esp + 4]
mov edx, ebx
jmp 0x4a9db9
mov ecx, dword [esp + 4]
call fcn.0046dea0
test eax, eax
je 0x4a9dc6
mov eax, dword [eax]
jmp 0x4a9dcb
mov eax, str.BINARY
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
or dword [esp + 0x48], edi
mov ecx, dword [ecx + 0x20]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x54]
inc edx
mov dword [esp + 0x30], edx
or dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0x18]
jmp 0x4a9cb0
cmp word [esp + 0x2c], 0
jle 0x4a9e5c
xor eax, eax
mov edx, 1
xor ecx, ecx
jmp 0x4a9e19
mov esi, dword [esp + 0x28]
inc ecx
cmp ecx, esi
jge 0x4a9e5c
xor esi, esi
mov edi, 1
shld esi, edx, cl
shl edi, cl
test cl, 0x20
cmovne esi, edi
cmovne edi, eax
and edi, dword [esp + 0x10]
and esi, ebx
or edi, esi
je 0x4a9e10
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x30]
mov esi, dword [ebx + 4]
mov word [esi + edi*2], cx
mov esi, dword [ebx + 0x20]
mov ebx, dword [esp + 8]
mov dword [esi + edi*4], str.BINARY
inc edi
mov dword [esp + 0x30], edi
jmp 0x4a9e10
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0
jns 0x4a9ec1
mov edi, dword [esp + 0x24]
cmp word [edi + 0x2a], 0x40
jl 0x4a9ec1
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0xc]
lea eax, [ecx + ecx]
lea edx, [ecx*4]
mov ecx, 0x3f
nop word [eax + eax]
mov esi, dword [ebx + 4]
add esi, eax
mov word [esi + ecx*2 - 0x7e], cx
mov esi, dword [ebx + 0x20]
add esi, edx
mov dword [esi + ecx*4 - 0xfc], 0x50e2f3
inc ecx
movsx esi, word [edi + 0x2a]
cmp ecx, esi
jl 0x4a9e90
mov eax, dword [esp + 0x30]
lea eax, [eax + ecx - 0x3f]
mov dword [esp + 0x30], eax
jmp 0x4a9ec5
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 4]
mov word [eax + ecx*2], 0xffff
mov eax, dword [ebx + 0x20]
mov dword [eax + ecx*4], str.BINARY
mov eax, dword [edx + 0x28]
lea ecx, [eax + 1]
mov dword [edx + 0x28], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], esi
jle 0x4a9f55
lea edx, [esi + 1]
mov dword [ecx + 0x6c], edx
mov edx, dword [ecx + 0x68]
lea ecx, [esi + esi*4]
mov esi, dword [esp + 0x44]
mov dword [edx + ecx*4], 0x63
mov dword [edx + ecx*4 + 4], eax
mov dword [edx + ecx*4 + 8], esi
mov dword [edx + ecx*4 + 0xc], 0
mov dword [edx + ecx*4 + 0x10], 0
jmp 0x4a9f69
mov edx, edi
mov ecx, edi
sar edx, 0x1f
call fcn.0041c030
test eax, eax
jne 0x4a9bf6
mov esi, dword [esp + 4]
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x4aa48a
jmp 0x4aa491
mov edx, 0x63
push 0
push dword [esp + 0x48]
push eax
call fcn.0046c600
add esp, 0xc
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + 8]
call fcn.00486590
test eax, eax
je 0x4a9fb0
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
je 0x4a9f9e
cmp dword [ecx + 0x1f8], 0
jne 0x4a9fb0
dec dword [eax]
jne 0x4a9fb0
mov ecx, dword [eax + 0xc]
mov edx, eax
call fcn.004352c0
jmp 0x4a9fb0
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x68]
lea edx, [edx + edx*4]
mov byte [ecx + edx*4 - 0x13], 0xf7
mov dword [ecx + edx*4 - 4], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax]
mov ebx, dword [eax + 4]
movzx eax, byte [ecx + 0x34]
lea edx, [eax + eax*8]
mov dword [esp + 0x18], ebx
test byte [ebx + edx*8 + 0x2d], 0x10
mov dword [esp + 8], edx
jne 0x4aa012
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], ebx
jle 0x4aa060
lea edx, [ebx + 1]
mov dword [ecx + 0x6c], edx
lea edx, [ebx + ebx*4]
mov ecx, dword [ecx + 0x68]
mov dword [ecx + edx*4], 0x25
mov dword [ecx + edx*4 + 4], eax
mov dword [ecx + edx*4 + 8], 0
mov dword [ecx + edx*4 + 0xc], 0
mov dword [ecx + edx*4 + 0x10], 0
jmp 0x4aa074
mov edi, dword [esp + 0x1c]
mov esi, dword [ebx + edx*8 + 0x24]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jle 0x4aa081
lea eax, [ecx + 1]
mov dword [esp + 0x24], ecx
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x68]
mov byte [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 0xd], 0
mov dword [eax + ecx*4 + 5], 0
mov dword [eax + ecx*4 + 1], 0
mov dword [eax + ecx*4 + 9], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4aa09e
mov edx, 0x25
push 0
push 0
push eax
call fcn.0046c600
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x24], 0
jmp 0x4aa139
mov edx, 0x45
mov ecx, edi
push 0
push 0
push 0
call fcn.0046c600
mov edx, dword [esp + 0x14]
add esp, 0xc
mov dword [esp + 0x24], eax
mov ecx, dword [edi + 0x6c]
mov eax, dword [ebx + edx*8 + 0x20]
cmp dword [edi + 0x70], ecx
jle 0x4aa0d7
lea edx, [ecx + 1]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], edx
mov edx, dword [edi + 0x68]
mov dword [edx + ecx*4], 0xd
mov dword [edx + ecx*4 + 4], esi
mov dword [edx + ecx*4 + 8], 0
mov dword [edx + ecx*4 + 0xc], eax
mov dword [edx + ecx*4 + 0x10], 0
jmp 0x4aa0ea
mov ecx, edi
mov edx, 0xd
push eax
push 0
push esi
call fcn.0046c600
add esp, 0xc
mov ebx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ebx
jle 0x4aa123
lea eax, [ebx + 1]
lea ecx, [ebx + ebx*4]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4aa139
mov ecx, edi
mov edx, 0xe
push 0
push 0
push esi
call fcn.0046c600
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
test eax, eax
je 0x4aa167
mov esi, dword [ecx + 0x38]
dec esi
mov dword [ecx + 0x38], esi
push 0x10
push esi
push eax
push ecx
call fcn.0048b810
mov ecx, dword [esp + 0x14]
add esp, 0x10
mov eax, dword [esp + 0x20]
or byte [eax + 0x26], 2
jmp 0x4aa169
xor esi, esi
mov al, byte [ecx + 0x13]
mov dword [esp + 0x10], ebx
test al, al
je 0x4aa185
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov ebx, dword [ecx + eax*4 + 0x94]
jmp 0x4aa18c
mov ebx, dword [ecx + 0x2c]
inc ebx
mov dword [ecx + 0x2c], ebx
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push ebx
mov edi, dword [ebp + 0x14]
push dword [edi + 4]
call fcn.0049abb0
add esp, 0x18
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x28], ebx
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jle 0x4aa1eb
lea edx, [ecx + 1]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], edx
mov edx, dword [edi + 0x68]
mov dword [edx + ecx*4], 0x82
mov dword [edx + ecx*4 + 4], eax
mov dword [edx + ecx*4 + 8], ebx
mov dword [edx + ecx*4 + 0xc], 0
mov dword [edx + ecx*4 + 0x10], 0
jmp 0x4aa1fe
mov ecx, edi
mov edx, 0x82
push 0
push ebx
push eax
call fcn.0046c600
add esp, 0xc
mov eax, dword [edi + 0x6c]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 8]
test eax, eax
jle 0x4aa21a
mov ecx, dword [edi + 0x68]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], 0x10
cmp dword [esp + 0x14], 0
lea edi, [ebx + edx*8 + 0x2d]
je 0x4aa24e
mov edx, dword [esp + 0x1c]
not esi
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + 0x38]
add eax, dword [ecx + 0x3c]
js 0x4aa241
mov eax, dword [edx + 0x6c]
mov ecx, dword [ecx + 0x40]
mov dword [ecx + esi*4], eax
jmp 0x4aa24a
push esi
call fcn.0048f970
add esp, 4
mov edx, dword [esp + 8]
test byte [edi], 0x10
jne 0x4aa2a0
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp + 0x14]
lea esi, [ecx + 1]
mov ecx, dword [edi + 0x6c]
mov eax, dword [eax + 4]
cmp dword [edi + 0x70], ecx
jle 0x4aa3c0
lea edx, [ecx + 1]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], edx
mov edx, dword [edi + 0x68]
mov dword [edx + ecx*4], 5
mov dword [edx + ecx*4 + 4], eax
mov dword [edx + ecx*4 + 8], esi
mov dword [edx + ecx*4 + 0xc], 0
mov dword [edx + ecx*4 + 0x10], 0
jmp 0x4aa3d3
mov esi, dword [esp + 0x24]
test esi, esi
jns 0x4aa2b0
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x6c]
dec esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], edi
mov edi, dword [esp + 0xc]
mov ecx, dword [eax]
add edi, dword [esp + 0x30]
mov eax, 0x51ea94
cmp byte [ecx + 0x51], 0
jne 0x4aa2da
mov ecx, dword [esp + 0x1c]
lea eax, [esi + esi*4]
shl eax, 2
add eax, dword [ecx + 0x68]
mov ecx, dword [ebp + 0x14]
mov esi, dword [esp + 4]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x10]
mov edx, dword [ebx + edx*8 + 0x28]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov ebx, dword [esi + 8]
test edi, edi
mov dword [esp + 0x30], edx
jns 0x4aa301
mov edi, dword [ebx + 0x6c]
dec edi
mov edx, dword [ebx]
mov esi, 0x51ea94
cmp byte [edx + 0x51], 0
jne 0x4aa317
lea esi, [edi + edi*4]
shl esi, 2
add esi, dword [ebx + 0x68]
mov ebx, dword [ebx + 0x6c]
mov edi, dword [esp + 0x30]
sub ebx, dword [esp + 0x10]
jle 0x4aa330
mov edx, dword [esp + 4]
mov edx, dword [edx]
cmp byte [edx + 0x51], 0
je 0x4aa38f
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x6c]
cmp dword [edi + 0x70], eax
jle 0x4aa3f1
lea ecx, [eax + 1]
mov edx, dword [esp + 0x10]
lea eax, [eax + eax*4]
mov dword [edi + 0x6c], ecx
mov ecx, dword [edi + 0x68]
mov dword [ecx + eax*4], 0xb
mov dword [ecx + eax*4 + 4], 0
mov dword [ecx + eax*4 + 8], edx
mov dword [ecx + eax*4 + 0xc], 0
mov dword [ecx + eax*4 + 0x10], 0
jmp 0x4aa408
mov byte [esi], 0x48
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
add esi, 0x14
dec ebx
je 0x4aa330
cmp dword [esi + 4], eax
jne 0x4aa389
movzx edx, byte [esi]
cmp dl, 0x7f
je 0x4aa3b4
cmp dl, 0x59
jne 0x4aa389
mov byte [esi], 0x4d
mov edx, dword [esi + 8]
add edx, edi
mov dword [esi + 4], edx
mov edx, dword [esi + 0xc]
mov dword [esi + 8], edx
jmp 0x4aa382
test ecx, ecx
je 0x4aa378
mov byte [esi], 0x77
mov dword [esi + 4], ecx
jmp 0x4aa389
mov ecx, edi
mov edx, 5
push 0
push esi
push eax
call fcn.0046c600
add esp, 0xc
mov eax, dword [edi + 0x6c]
mov esi, dword [esp + 4]
mov edx, dword [esp + 0x14]
test eax, eax
jle 0x4aa417
mov ecx, dword [edi + 0x68]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], 3
jmp 0x4aa417
mov ecx, edi
mov edx, 0xb
push 0
push dword [esp + 0x14]
push 0
call fcn.0046c600
add esp, 0xc
mov eax, dword [esp + 8]
and byte [eax], 0xef
mov esi, dword [esp + 4]
mov edx, dword [esp + 0x14]
mov ebx, dword [edi]
mov eax, dword [edi + 0x6c]
mov ecx, 0x51ea94
cmp byte [ebx + 0x51], 0
jne 0x4aa43c
mov ebx, dword [esp + 0x10]
lea ecx, [eax - 1]
test ebx, ebx
cmovns ecx, ebx
lea ecx, [ecx + ecx*4]
shl ecx, 2
add ecx, dword [edi + 0x68]
mov ebx, dword [esp + 0x28]
mov dword [ecx + 8], eax
test ebx, ebx
je 0x4aa45e
movzx eax, byte [esi + 0x13]
cmp eax, 7
ja 0x4aa45e
mov ecx, eax
inc cl
mov byte [esi + 0x13], cl
mov dword [esi + eax*4 + 0x94], ebx
mov ebx, dword [edi]
mov eax, dword [edi + 0x6c]
mov ecx, 0x51ea94
cmp byte [ebx + 0x51], 0
jne 0x4aa483
mov ebx, dword [esp + 0x5c]
lea ecx, [eax - 1]
test ebx, ebx
cmovns ecx, ebx
lea ecx, [ecx + ecx*4]
shl ecx, 2
add ecx, dword [edi + 0x68]
mov dword [ecx + 8], eax
test edx, edx
je 0x4aa491
mov ecx, dword [esi]
call fcn.00469b50
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret