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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8828
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 [0x5d67dc]
mov byte [ebp - 4], 1
mov dword [ebp - 0x3b0], eax
mov dword [ebp - 0x3cc], eax
movss dword [ebp - 0x3e8], xmm0
jne 0x4afdce
cmp dword [ebp + 0x1c], 8
lea esi, [ebp + 8]
cmovae esi, dword [ebp + 8]
call fcn.00405d15
mov ecx, eax
test ecx, ecx
je 0x4afdff
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 0x4aedec
test esi, esi
jne 0x4aedc9
xor ecx, ecx
jmp 0x4aeddf
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aedd0
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 0x4aef3c
push 0x5d0ed0
push esi
call fcn.0058df37
add esp, 8
test eax, eax
je 0x4aef3c
sub eax, esi
sar eax, 1
js 0x4aef3c
cmp dword [esi - 0xc], 0
jg 0x4aee2b
or edi, 0xffffffff
jmp 0x4aee45
push 0x40
push esi
call fcn.0058e1b3
mov edi, eax
add esp, 8
test edi, edi
jne 0x4aee41
or edi, 0xffffffff
jmp 0x4aee45
sub edi, esi
sar edi, 1
cmp dword [esi - 0xc], 0
jg 0x4aee50
or eax, 0xffffffff
jmp 0x4aee68
push 0x2e
push esi
call fcn.0058e1b3
add esp, 8
test eax, eax
jne 0x4aee64
or eax, 0xffffffff
jmp 0x4aee68
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.00409033
push esi
push edi
lea eax, [ebp - 0x3e4]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x3b8]
call fcn.00409033
mov esi, dword [ebp - 0x3e4]
cmp edi, 0xffffffff
mov edi, dword [ebp - 0x3cc]
mov byte [ebp - 4], 5
je 0x4aeef8
cmp dword [ebp - 0x3bc], 0xffffffff
je 0x4aeef8
push 0x5fcef8
push esi
lea ecx, [ebp - 0x3b8]
call fcn.0042d740
push edi
call fcn.005a7f36
add esp, 4
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x605a28]
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 0x4aef1a
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 0x4aef36
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 0x4af692
lea eax, [ebp - 0x68]
push eax
call fcn.004749b0
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.004749e0
add esp, 4
cmp dword [eax + 4], 0
jne 0x4af0ef
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aefa0
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.004173e6
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x4af031
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4af027
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4afe09
push edx
push ecx
call fcn.0053a186
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 0x4af06d
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00405f7b
jmp 0x4af728
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3b0], eax
test eax, eax
jne 0x4af091
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00405f7b
jmp 0x4af728
lea ecx, [ebp - 0x3dc]
mov dword [ebp - 0x3e0], 0
push ecx
push eax
call fcn.004a1e30
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 0x4af634
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00405f7b
jmp 0x4af728
lea eax, [ebp - 0x3c8]
push eax
call fcn.004749e0
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.004173e6
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x4af178
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4af16e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4afe0e
push edx
push ecx
call fcn.0053a186
add esp, 8
lea eax, [ebp - 0x3f0]
push eax
call fcn.00474a20
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.00474e20
test al, al
je 0x4af1dc
call fcn.00474a10
mov dword [ebp - 0x3bc], eax
jmp 0x4af27e
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.004b4240
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.00498f10
mov edx, dword [ebp - 0x14]
add esp, 0x18
mov dword [ebp - 0x3bc], eax
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x4af26c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4af25c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4afe13
push edx
push ecx
call fcn.0053a186
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 0x4af29e
lea ecx, [ebp - 0x94]
call fcn.00405f7b
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00405f7b
jmp 0x4af728
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 0x4af2d0
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 0x4af343
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4af339
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4afe18
push edx
push ecx
call fcn.0053a186
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], 0x5ff994
mov dword [ebp - 0x64], 1
call fcn.0048cb60
mov esi, eax
cmp esi, dword [0x625120]
je 0x4af466
push 1
push 0x60567c
push 1
push esi
lea ecx, [ebp - 0x44]
call fcn.004296a0
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 0x4af451
lea eax, [ecx - 1]
cmp esi, eax
ja 0x4af451
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 0x4af3f4
cmp word [esi], 0x5c
je 0x4af3f2
cmp ecx, 1
je 0x4af3f4
add esi, 2
dec ecx
cmp word [esi], 0x5c
jne 0x4af3e3
mov edx, esi
mov esi, edx
test esi, esi
je 0x4af451
movzx ecx, word [esi]
mov edx, 0x5c
mov edi, 1
mov eax, 0x5ff994
cmp ecx, edx
jb 0x4af43c
mov dword [ebp - 0x3e0], esi
sub dword [ebp - 0x3e0], eax
cmp cx, dx
ja 0x4af43c
cmp edi, 1
je 0x4af447
mov ecx, dword [ebp - 0x3e0]
add eax, 2
dec edi
movzx ecx, word [eax + ecx]
movzx edx, word [eax]
cmp cx, dx
jae 0x4af41f
mov eax, dword [ebp - 0x3ec]
add esi, 2
jmp 0x4af3d0
sub esi, dword [ebp - 0x3c4]
sar esi, 1
jmp 0x4af454
or esi, 0xffffffff
cmp esi, dword [0x625120]
jne 0x4af383
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.00498630
add esp, 0x14
test eax, eax
je 0x4af4b8
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 0x4af728
mov esi, dword [ebp - 0x17c]
mov dword [ebp - 0x3b0], esi
test esi, esi
jne 0x4af4ec
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 0x4af728
lea eax, [ebp - 0x3dc]
push eax
push esi
mov ecx, eax
call fcn.004a1e30
push esi
push dword [ebp - 0x3dc]
mov esi, dword [ebp - 0x3bc]
push dword [ebp - 0x3e4]
push esi
call fcn.00499500
add esp, 0x10
test eax, eax
je 0x4af558
cmp eax, 0x600
je 0x4af558
call fcn.00474e20
test al, al
jne 0x4af534
push esi
call fcn.00498190
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 0x4af728
call fcn.00474e20
test al, al
jne 0x4af56a
push esi
call fcn.00498190
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 0x4af5bf
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4af5b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4afe1d
push edx
push ecx
call fcn.0053a186
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 0x4af634
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4af62a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4afe22
push edx
push ecx
call fcn.0053a186
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 0x4af722
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4af683
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4afe27
push edx
push ecx
call fcn.0053a186
add esp, 8
jmp 0x4af722
mov esi, dword [ebp - 0x3c4]
test esi, esi
jne 0x4af6a3
call fcn.00474990
mov esi, eax
movsx ecx, byte [ebp + 0x24]
test ecx, ecx
jne 0x4afe2c
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 0x4af722
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3c4], eax
push edi
test eax, eax
je 0x4af71c
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x3b0], esi
test esi, esi
je 0x4af722
lea eax, [ebp - 0x3dc]
push eax
push esi
mov ecx, eax
call fcn.004a1e30
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.0058cfa0
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 0x4af7be
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 0x4af7ac
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3b0], eax
test eax, eax
je 0x4af7ac
lea ecx, [ebp - 0x3dc]
mov dword [ebp - 0x3c4], 0
push ecx
push eax
call fcn.004a1e30
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 0x4af98e
cmp dword [ebp - 0x3cc], 0
mov esi, 1
jne 0x4af82b
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.004bb420
add esp, 0x14
mov edi, eax
jmp 0x4afb3d
mov ecx, esi
mov esi, dword [ebp - 0x3b8]
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x4af850
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 0x4af855
sub ecx, edx
lea eax, [ebp - 0x28]
push 0xfde9
sar ecx, 1
push ecx
push esi
push eax
call fcn.004b4240
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 0x4af8da
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00416fc0
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.00552340
add esp, 8
mov ecx, esi
or ecx, 3
jmp 0x4af8f6
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x3c4]
push eax
call fcn.00552230
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 0x4af941
mov esi, dword [ebp - 0x3c4]
and ecx, 0xfffffffb
mov dword [ebp - 0x3b4], ecx
test esi, esi
je 0x4af941
mov ecx, esi
call fcn.0040fac0
push 4
push esi
call fcn.0053a186
mov ecx, dword [ebp - 0x3b4]
add esp, 8
test cl, 2
je 0x4af971
mov esi, dword [ebp - 0x3ec]
and ecx, 0xfffffffd
mov dword [ebp - 0x3b4], ecx
test esi, esi
je 0x4af971
mov ecx, esi
call fcn.0040fac0
push 4
push esi
call fcn.0053a186
mov ecx, dword [ebp - 0x3b4]
add esp, 8
mov byte [ebp - 4], 0x12
test cl, 1
je 0x4af982
lea ecx, [ebp - 0x40]
call fcn.0040c899
test edi, edi
jne 0x4af9ef
lea ecx, [ebp - 0x28]
call fcn.0040c899
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 0x4af9ae
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 0x4afd82
mov edx, dword [ebp - 0x3d4]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4afd5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4afe51
jmp 0x4afd5a
mov ecx, edi
call fcn.00553380
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.005521e0
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.00552bd0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x3cc], 0
call fcn.005521d0
lea ecx, [ebp - 0x68]
mov edi, eax
call fcn.00553370
lea ecx, [ebp - 0x68]
mov esi, eax
call fcn.005521b0
lea ecx, [ebp - 0x3cc]
push ecx
push 4
push edi
push esi
push 0
push eax
call fcn.004c0dd0
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.004bb420
mov esi, dword [ebp - 0x64]
add esp, 0x2c
mov edi, eax
test esi, esi
je 0x4afb19
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4afb19
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4afb19
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x3e4]
mov ecx, esi
call fcn.0040fac0
push 4
push esi
call fcn.0053a186
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040c899
test edi, edi
je 0x4af98e
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 0x4af98e
mov edx, dword [ebp - 0x3cc]
xor esi, esi
test edx, edx
jle 0x4afcf2
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 0x4afc8b
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 0x4afcaf
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 0x4afce9
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 0x4afc00
push edi
call fcn.005950fb
push 0x3c
call fcn.0053a194
add esp, 8
mov dword [ebp - 0x3c4], eax
mov byte [ebp - 4], 0x14
test eax, eax
je 0x4afd1b
mov ecx, eax
call fcn.004718a0
mov esi, eax
jmp 0x4afd1d
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 0x4af990
push edx
push ecx
call fcn.0053a186
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 0x4afdb1
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.0053a175
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.00495e90
push 0x619368
lea eax, [ebp - 0x3fc]
push eax
call fcn.0058e27a
push 0x80004005
call fcn.00405d25
call fcn.0059164f
call fcn.0059164f
call fcn.0059164f
call fcn.0059164f
call fcn.0059164f
call fcn.0059164f
call fcn.0059164f
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x6c]
movq qword [ebp - 0x6c], xmm0
call fcn.00495e90
push 0x619368
lea eax, [ebp - 0x6c]
push eax
call fcn.0058e27a
call fcn.0059164f
int3