Function at 0x4aeff0
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8578
mov eax, dword fs:[0]
push eax
sub esp, 0x3f0
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x3c4], eax
xor eax, eax
mov dword [ebp - 0x3b4], eax
mov dword [ebp - 0x3cc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x3dc], eax
mov dword [ebp - 0x3d8], eax
mov dword [ebp - 0x3d4], eax
cmp byte [ebp + 0x24], 1
movss xmm0, dword [0x5d681c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x3b0], eax
mov dword [ebp - 0x3cc], eax
movss dword [ebp - 0x3e8], xmm0
jne 0x4b00be
cmp dword [ebp + 0x1c], 8
lea esi, [ebp + 8]
cmovae esi, dword [ebp + 8]
call fcn.00405d15
mov ecx, eax
test ecx, ecx
je 0x4b00ef
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x3b8], eax
push esi
lea ecx, [ebp - 0x3b8]
mov byte [ebp - 4], 2
call fcn.00409a5f
test al, al
jne 0x4af0dc
test esi, esi
jne 0x4af0b9
xor ecx, ecx
jmp 0x4af0cf
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4af0c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x3b8]
call fcn.00409b39
mov esi, dword [ebp - 0x3b8]
mov byte [ebp - 4], 3
cmp dword [esi - 0xc], 0
jl 0x4af22c
push 0x5d0ed0
push esi
call fcn.0058dc77
add esp, 8
test eax, eax
je 0x4af22c
sub eax, esi
sar eax, 1
js 0x4af22c
cmp dword [esi - 0xc], 0
jg 0x4af11b
or edi, 0xffffffff
jmp 0x4af135
push 0x40
push esi
call fcn.0058def3
mov edi, eax
add esp, 8
test edi, edi
jne 0x4af131
or edi, 0xffffffff
jmp 0x4af135
sub edi, esi
sar edi, 1
cmp dword [esi - 0xc], 0
jg 0x4af140
or eax, 0xffffffff
jmp 0x4af158
push 0x2e
push esi
call fcn.0058def3
add esp, 8
test eax, eax
jne 0x4af154
or eax, 0xffffffff
jmp 0x4af158
sub eax, esi
sar eax, 1
mov esi, eax
mov dword [ebp - 0x3bc], eax
sub esi, edi
lea ecx, [ebp - 0x3b8]
lea eax, [esi - 1]
push eax
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x3cc]
push eax
call fcn.00408fac
push esi
push edi
lea eax, [ebp - 0x3e4]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x3b8]
call fcn.00408fac
mov esi, dword [ebp - 0x3e4]
cmp edi, 0xffffffff
mov edi, dword [ebp - 0x3cc]
mov byte [ebp - 4], 5
je 0x4af1e8
cmp dword [ebp - 0x3bc], 0xffffffff
je 0x4af1e8
push 0x5fcdf8
push esi
lea ecx, [ebp - 0x3b8]
call fcn.0042d620
push edi
call fcn.005a7c73
add esp, 4
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6058c8]
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x3e8], xmm0
mov dword [ebp - 0x3cc], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4af20a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4af226
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x3b8]
cmp dword [ebp + 0x2c], 0
jne 0x4af982
lea eax, [ebp - 0x68]
push eax
call fcn.004748a0
add esp, 4
xor edx, edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], dx
call fcn.0040612d
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x3c8]
mov byte [ebp - 4], 6
push eax
call fcn.004748d0
add esp, 4
cmp dword [eax + 4], 0
jne 0x4af3df
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4af290
sub ecx, edx
mov dword [ebp - 0x18], 0
sar ecx, 1
xor eax, eax
push ecx
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040612d
mov edi, 0x18
mov dword [ebp - 0x3b4], edi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x60]
push eax
mov byte [ebp - 4], 7
call fcn.004172c6
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x4af321
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4af317
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b00f9
push edx
push ecx
call fcn.00539e76
add esp, 8
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
push 0
cmovae eax, dword [ebp - 0x60]
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4af35d
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00405f7b
jmp 0x4afa18
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3b0], eax
test eax, eax
jne 0x4af381
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00405f7b
jmp 0x4afa18
lea ecx, [ebp - 0x3dc]
mov dword [ebp - 0x3e0], 0
push ecx
push eax
call fcn.004a2120
mov ecx, dword [ebp - 0x3b0]
lea eax, [ebp - 0x3e0]
push 0
push eax
push ecx
push dword [ebp - 0x3dc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x3b0]
cmp dword [ebp - 0x3e0], eax
je 0x4af924
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00405f7b
jmp 0x4afa18
lea eax, [ebp - 0x3c8]
push eax
call fcn.004748d0
add esp, 4
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push dword [eax + 4]
push dword [eax]
call fcn.0040612d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x60]
push eax
mov byte [ebp - 4], 8
call fcn.004172c6
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x4af468
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4af45e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b00fe
push edx
push ecx
call fcn.00539e76
add esp, 8
lea eax, [ebp - 0x3f0]
push eax
call fcn.00474910
add esp, 4
xor edx, edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], dx
call fcn.0040612d
mov edi, 0x68
mov dword [ebp - 0x7c], 0
mov byte [ebp - 4], 9
call fcn.00474d10
test al, al
je 0x4af4cc
call fcn.00474900
mov dword [ebp - 0x3bc], eax
jmp 0x4af56e
cmp dword [ebp - 0x80], 8
lea eax, [ebp - 0x94]
push 0
push dword [ebp - 0x84]
cmovae eax, dword [ebp - 0x94]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b4520
mov edi, 0x3e8
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0xa
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x4c], 8
push ecx
cmovae eax, dword [ebp - 0x60]
push eax
call fcn.00499200
mov edx, dword [ebp - 0x14]
add esp, 0x18
mov dword [ebp - 0x3bc], eax
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x4af55c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4af54c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b0103
push edx
push ecx
call fcn.00539e76
mov eax, dword [ebp - 0x3bc]
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test eax, eax
jne 0x4af58e
lea ecx, [ebp - 0x94]
call fcn.00405f7b
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00405f7b
jmp 0x4afa18
xor eax, eax
mov dword [ebp - 0x3e4], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov ecx, esi
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x2c], eax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4af5c0
sub ecx, edx
mov dword [ebp - 0x68], 0
sar ecx, 1
xor eax, eax
push ecx
push esi
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
call fcn.0040612d
mov edx, dword [ebp - 0x30]
or edi, 0x400
mov dword [ebp - 0x3b4], edi
cmp edx, 8
jb 0x4af633
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4af629
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b0108
push edx
push ecx
call fcn.00539e76
add esp, 8
movups xmm0, xmmword [ebp - 0x78]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x68]
movq qword [ebp - 0x34], xmm0
push 0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x68], 0x5ff854
mov dword [ebp - 0x64], 1
call fcn.0048ce70
mov esi, eax
cmp esi, dword [0x625120]
je 0x4af756
push 1
push 0x60551c
push 1
push esi
lea ecx, [ebp - 0x44]
call fcn.00429580
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x44]
add esi, 2
cmp dword [ebp - 0x30], 8
cmovae edx, dword [ebp - 0x44]
mov dword [ebp - 0x3c4], edx
cmp ecx, 1
jb 0x4af741
lea eax, [ecx - 1]
cmp esi, eax
ja 0x4af741
lea eax, [edx + ecx*2]
mov dword [ebp - 0x3ec], eax
lea esi, [edx + esi*2]
nop dword [eax]
mov ecx, eax
mov edx, 0
sub ecx, esi
sar ecx, 1
je 0x4af6e4
cmp word [esi], 0x5c
je 0x4af6e2
cmp ecx, 1
je 0x4af6e4
add esi, 2
dec ecx
cmp word [esi], 0x5c
jne 0x4af6d3
mov edx, esi
mov esi, edx
test esi, esi
je 0x4af741
movzx ecx, word [esi]
mov edx, 0x5c
mov edi, 1
mov eax, 0x5ff854
cmp ecx, edx
jb 0x4af72c
mov dword [ebp - 0x3e0], esi
sub dword [ebp - 0x3e0], eax
cmp cx, dx
ja 0x4af72c
cmp edi, 1
je 0x4af737
mov ecx, dword [ebp - 0x3e0]
add eax, 2
dec edi
movzx ecx, word [eax + ecx]
movzx edx, word [eax]
cmp cx, dx
jae 0x4af70f
mov eax, dword [ebp - 0x3ec]
add esi, 2
jmp 0x4af6c0
sub esi, dword [ebp - 0x3c4]
sar esi, 1
jmp 0x4af744
or esi, 0xffffffff
cmp esi, dword [0x625120]
jne 0x4af673
mov edi, dword [ebp - 0x3b4]
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x3a8]
push ecx
lea ecx, [ebp - 0x3e4]
push ecx
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push 1
push eax
push dword [ebp - 0x3bc]
call fcn.00498920
add esp, 0x14
test eax, eax
je 0x4af7a8
lea ecx, [ebp - 0x44]
call fcn.00405f7b
lea ecx, [ebp - 0x94]
call fcn.00405f7b
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00405f7b
jmp 0x4afa18
mov esi, dword [ebp - 0x17c]
mov dword [ebp - 0x3b0], esi
test esi, esi
jne 0x4af7dc
lea ecx, [ebp - 0x44]
call fcn.00405f7b
lea ecx, [ebp - 0x94]
call fcn.00405f7b
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00405f7b
jmp 0x4afa18
lea eax, [ebp - 0x3dc]
push eax
push esi
mov ecx, eax
call fcn.004a2120
push esi
push dword [ebp - 0x3dc]
mov esi, dword [ebp - 0x3bc]
push dword [ebp - 0x3e4]
push esi
call fcn.004997f0
add esp, 0x10
test eax, eax
je 0x4af848
cmp eax, 0x600
je 0x4af848
call fcn.00474d10
test al, al
jne 0x4af824
push esi
call fcn.00498480
add esp, 4
lea ecx, [ebp - 0x44]
call fcn.00405f7b
lea ecx, [ebp - 0x94]
call fcn.00405f7b
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00405f7b
jmp 0x4afa18
call fcn.00474d10
test al, al
jne 0x4af85a
push esi
call fcn.00498480
add esp, 4
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], 0
cmovae eax, dword [ebp - 0x44]
xor ecx, ecx
mov byte [ebp - 4], 9
mov word [eax], cx
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4af8af
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4af8a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b010d
push edx
push ecx
call fcn.00539e76
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x80], 8
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x94]
cmovae eax, dword [ebp - 0x94]
xor ecx, ecx
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x84], 0
mov byte [ebp - 4], 6
mov word [eax], cx
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x4af924
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4af91a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b0112
push edx
push ecx
call fcn.00539e76
add esp, 8
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
mov dword [ebp - 0x50], 0
cmovae eax, dword [ebp - 0x60]
xor ecx, ecx
mov byte [ebp - 4], 3
mov word [eax], cx
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x4afa12
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4af973
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b0117
push edx
push ecx
call fcn.00539e76
add esp, 8
jmp 0x4afa12
mov esi, dword [ebp - 0x3c4]
test esi, esi
jne 0x4af993
call fcn.00474880
mov esi, eax
movsx ecx, byte [ebp + 0x24]
test ecx, ecx
jne 0x4b011c
push dword [ebp + 0x28]
movzx eax, word [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4afa12
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3c4], eax
push edi
test eax, eax
je 0x4afa0c
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x3b0], esi
test esi, esi
je 0x4afa12
lea eax, [ebp - 0x3dc]
push eax
push esi
mov ecx, eax
call fcn.004a2120
push dword [ebp - 0x3b0]
mov esi, dword [ebp - 0x3dc]
push dword [ebp - 0x3c4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.0058cce0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edi, dword [ebp - 0x3b4]
mov eax, dword [ebp - 0x3dc]
cmp eax, dword [ebp - 0x3d8]
jne 0x4afaae
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x3b8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4afa9c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3b0], eax
test eax, eax
je 0x4afa9c
lea ecx, [ebp - 0x3dc]
mov dword [ebp - 0x3c4], 0
push ecx
push eax
call fcn.004a2120
push 0
lea eax, [ebp - 0x3c4]
push eax
push dword [ebp - 0x3b0]
push dword [ebp - 0x3dc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x3dc]
cmp eax, dword [ebp - 0x3d8]
je 0x4afc7e
cmp dword [ebp - 0x3cc], 0
mov esi, 1
jne 0x4afb1b
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xd0], eax
add eax, dword [ebp - 0x3b0]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x3c4]
push 4
push eax
lea eax, [ebp - 0x3b0]
mov dword [ebp - 0x168], 0
push eax
lea eax, [ebp - 0x3bc]
mov dword [ebp - 0x158], 0
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.004bb700
add esp, 0x14
mov edi, eax
jmp 0x4afe2d
mov ecx, esi
mov esi, dword [ebp - 0x3b8]
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x4afb40
push 0
lea ecx, [ebp - 0x3b8]
call fcn.0040595f
mov esi, dword [ebp - 0x3b8]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4afb45
sub ecx, edx
lea eax, [ebp - 0x28]
push 0xfde9
sar ecx, 1
push ecx
push esi
push eax
call fcn.004b4520
or edi, 0x800
add esp, 0x10
mov dword [ebp - 0x3b4], edi
mov esi, edi
mov dword [ebp - 0x3cc], edi
mov ecx, dword [ebp - 0x3dc]
mov eax, dword [ebp - 0x3d8]
mov byte [ebp - 4], 0xd
cmp ecx, eax
jne 0x4afbca
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00416ea0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x3ec]
or edi, 1
push eax
mov dword [ebp - 0x3cc], edi
call fcn.00552040
add esp, 8
mov ecx, esi
or ecx, 3
jmp 0x4afbe6
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x3c4]
push eax
call fcn.00551f30
mov ecx, dword [ebp - 0x3b4]
add esp, 0xc
or ecx, 4
mov edi, dword [eax]
mov dword [ebp - 0x3e4], edi
mov dword [eax], 0
mov dword [ebp - 0x3e0], edi
mov dword [ebp - 4], 0x10
test cl, 4
je 0x4afc31
mov esi, dword [ebp - 0x3c4]
and ecx, 0xfffffffb
mov dword [ebp - 0x3b4], ecx
test esi, esi
je 0x4afc31
mov ecx, esi
call fcn.0040f9a0
push 4
push esi
call fcn.00539e76
mov ecx, dword [ebp - 0x3b4]
add esp, 8
test cl, 2
je 0x4afc61
mov esi, dword [ebp - 0x3ec]
and ecx, 0xfffffffd
mov dword [ebp - 0x3b4], ecx
test esi, esi
je 0x4afc61
mov ecx, esi
call fcn.0040f9a0
push 4
push esi
call fcn.00539e76
mov ecx, dword [ebp - 0x3b4]
add esp, 8
mov byte [ebp - 4], 0x12
test cl, 1
je 0x4afc72
lea ecx, [ebp - 0x40]
call fcn.0040c779
test edi, edi
jne 0x4afcdf
lea ecx, [ebp - 0x28]
call fcn.0040c779
xor esi, esi
mov edx, dword [ebp - 0x3b8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4afc9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x3dc]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4b0072
mov edx, dword [ebp - 0x3d4]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4b004a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b0141
jmp 0x4b004a
mov ecx, edi
call fcn.00553080
fstp qword [ebp - 0x3d0]
cvttsd2si eax, qword [ebp - 0x3d0]
mov ecx, edi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x3e8]
cvttss2si esi, xmm0
mov dword [ebp - 0x3bc], esi
call fcn.00551ee0
fstp qword [ebp - 0x3d0]
cvttsd2si eax, qword [ebp - 0x3d0]
push 0
mov ecx, edi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x3e8]
cvttss2si eax, xmm0
push eax
mov dword [ebp - 0x3b0], eax
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.005528d0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x3cc], 0
call fcn.00551ed0
lea ecx, [ebp - 0x68]
mov edi, eax
call fcn.00553070
lea ecx, [ebp - 0x68]
mov esi, eax
call fcn.00551eb0
lea ecx, [ebp - 0x3cc]
push ecx
push 4
push edi
push esi
push 0
push eax
call fcn.004c10b0
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x188], eax
add eax, dword [ebp - 0x3cc]
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x184], eax
lea eax, [ebp - 0x3c4]
push 4
push eax
lea eax, [ebp - 0x3b0]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x3bc]
mov dword [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004bb700
mov esi, dword [ebp - 0x64]
add esp, 0x2c
mov edi, eax
test esi, esi
je 0x4afe09
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4afe09
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4afe09
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x3e4]
mov ecx, esi
call fcn.0040f9a0
push 4
push esi
call fcn.00539e76
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040c779
test edi, edi
je 0x4afc7e
mov eax, dword [ebp - 0x3b0]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x3bc]
neg eax
mov dword [ebp - 0xb8], eax
mov eax, ecx
imul eax, dword [ebp - 0x3b0]
push 0
push 0
movlpd qword [ebp - 0xa8], xmm0
movlpd qword [ebp - 0xa0], xmm0
mov dword [ebp - 0x3cc], eax
shl eax, 2
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x3c0]
push eax
push 0
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x98], 0
push eax
push 0
mov dword [ebp - 0xc0], 0x28
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb4], 0x200001
mov dword [ebp - 0xb0], 0
mov byte [ebp - 0x3a9], 0
mov dword [ebp - 0x3c0], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x3ec], eax
test eax, eax
je 0x4afc7e
mov edx, dword [ebp - 0x3cc]
xor esi, esi
test edx, edx
jle 0x4affe2
nop dword [eax]
mov eax, dword [ebp - 0x3c0]
mov cl, byte [edi + esi*4 + 3]
mov byte [eax + esi*4 + 3], cl
mov ecx, dword [ebp - 0x3c0]
cmp byte [ecx + esi*4 + 3], 0xff
jae 0x4aff7b
movzx eax, byte [edi + esi*4 + 3]
movzx ecx, byte [edi + esi*4 + 2]
imul ecx, eax
mov eax, 0x80808081
mov byte [ebp - 0x3a9], 1
mul ecx
mov eax, dword [ebp - 0x3c0]
shr edx, 7
mov byte [eax + esi*4], dl
movzx eax, byte [edi + esi*4 + 3]
movzx ecx, byte [edi + esi*4 + 1]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x3c0]
shr edx, 7
mov byte [eax + esi*4 + 1], dl
movzx eax, byte [edi + esi*4 + 3]
movzx ecx, byte [edi + esi*4]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x3c0]
shr edx, 7
mov byte [eax + esi*4 + 2], dl
mov edx, dword [ebp - 0x3cc]
jmp 0x4aff9f
mov al, byte [edi + esi*4 + 2]
mov byte [ecx + esi*4], al
mov eax, dword [ebp - 0x3c0]
movzx ecx, byte [edi + esi*4 + 1]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x3c0]
movzx ecx, byte [edi + esi*4]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x3c0]
mov ecx, dword [ebp + 0x30]
cmp dword [eax + esi*4], ecx
jne 0x4affd9
mov byte [eax + esi*4], 0
mov eax, dword [ebp - 0x3c0]
mov byte [ebp - 0x3a9], 1
mov byte [eax + esi*4 + 1], 0
mov eax, dword [ebp - 0x3c0]
mov byte [eax + esi*4 + 2], 0
mov eax, dword [ebp - 0x3c0]
mov byte [eax + esi*4 + 3], 0
inc esi
cmp esi, edx
jl 0x4afef0
push edi
call fcn.00594e3b
push 0x3c
call fcn.00539e84
add esp, 8
mov dword [ebp - 0x3c4], eax
mov byte [ebp - 4], 0x14
test eax, eax
je 0x4b000b
mov ecx, eax
call fcn.00471790
mov esi, eax
jmp 0x4b000d
xor esi, esi
mov eax, dword [ebp - 0x3ec]
mov dword [esi], eax
mov eax, dword [ebp - 0x3bc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x3b0]
mov dword [esi + 0x14], eax
mov al, byte [ebp - 0x3a9]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 4], 0
mov byte [esi + 0x18], al
jmp 0x4afc80
push edx
push ecx
call fcn.00539e76
add esp, 8
mov dword [ebp - 0x3dc], 0
mov dword [ebp - 0x3d8], 0
mov dword [ebp - 0x3d4], 0
mov al, byte [ebp + 0x24]
mov dword [ebp - 4], 0x15
test al, al
js 0x4b00a1
movsx ecx, al
lea eax, [ebp - 0x3a9]
push eax
lea eax, [ebp + 8]
mov byte [ebp - 0x3a9], 0
push eax
mov ecx, dword [ecx*4 + 0x5d0d70]
call ecx
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00539e65
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x3f4], 0
lea ecx, [ebp - 0x3fc]
movq qword [ebp - 0x3fc], xmm0
call fcn.004961a0
push 0x6191f8
lea eax, [ebp - 0x3fc]
push eax
call fcn.0058dfba
push 0x80004005
call fcn.00405d25
call fcn.0059138f
call fcn.0059138f
call fcn.0059138f
call fcn.0059138f
call fcn.0059138f
call fcn.0059138f
call fcn.0059138f
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x6c]
movq qword [ebp - 0x6c], xmm0
call fcn.004961a0
push 0x6191f8
lea eax, [ebp - 0x6c]
push eax
call fcn.0058dfba
call fcn.0059138f
int3