Function at 0x40c090
Capabilities:
Create thread
Read .ini file
Resolve function by parsing pe exports
Resume thread

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
xor ebp, ebp
push edi
cmp esi, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
jle 0x40cbf0
cmp dword [esp + 0x68], ebp
jle 0x40cbf0
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x60]
cmp eax, ebp
je 0x40c111
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.0040f470
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
sub esp, 8
mov ecx, esp
push 0x3fe5c28f
push 0x5c28f5c3
mov dword [ecx], edx
mov edx, dword [esp + 0x6c]
push edi
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x74]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.0040e110
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ebx, eax
cmp ebx, ebp
je 0x40cbf0
mov cx, word [ebx + 0xe]
cmp cx, 8
jbe 0x40c12f
mov dword [ebx + 0x20], ebp
cmp esi, dword [ebx + 4]
jg 0x40c15b
mov edx, dword [esp + 0x68]
mov eax, dword [ebx + 8]
cmp edx, eax
jg 0x40c15b
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
cmp edx, ebp
mov dword [esp + 0x20], eax
je 0x40c15b
cmp eax, ebp
jne 0x40c15b
mov dword [esp + 0x6c], 5
cmp cx, 0x18
je 0x40c1a7
push ebx
xor esi, esi
call fcn.0040ec70
push ebx
mov dword [esp + 0x78], eax
call fcn.0040ecc0
mov ecx, dword [esp + 0x78]
add esp, 8
test ecx, ecx
je 0x40c256
test eax, eax
je 0x40c18b
mov esi, 1
cmp word [ebx + 0xe], 8
jne 0x40c24e
test eax, eax
jne 0x40c24e
push ebx
call fcn.0040ed00
add esp, 4
xor ecx, ecx
mov edi, dword [ebx + 0x20]
mov cx, word [ebx + 0xe]
mov dword [esp + 0x70], edi
imul ecx, dword [esp + 0x64]
add ecx, 0x1f
shr ecx, 5
shl ecx, 2
mov esi, ecx
imul esi, dword [esp + 0x68]
test esi, esi
je 0x40cbd3
cmp edi, 0x100
jg 0x40cbd3
mov edx, dword [esp + 0x64]
mov eax, 0xf3e58
cmp edx, eax
jg 0x40cbd3
cmp dword [esp + 0x68], eax
jg 0x40cbd3
mov eax, esi
xor edx, edx
div dword [esp + 0x68]
cmp eax, ecx
jb 0x40cbd3
cmp esi, 0xfffffbd7
ja 0x40cbd3
lea eax, [esi + edi*4 + 0x28]
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
test eax, eax
mov dword [esp + 0x40], eax
jne 0x40c2fb
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x40cbdd
mov ecx, dword [esp + 0x60]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
test esi, esi
jne 0x40c1a7
xor esi, esi
push edi
mov si, word [ebx + 0xe]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
cmp esi, 1
jne 0x40c283
push edi
call fcn.00402c60
mov esi, eax
push edi
mov dword [esp + 0x20], esi
call fcn.0040ebe0
add esp, 8
mov dword [esp + 0x38], eax
jmp 0x40c2ca
cmp esi, 4
jne 0x40c2b2
mov eax, dword [esp + 0x70]
push edi
test eax, eax
je 0x40c2ab
call fcn.00402ab0
mov esi, eax
push 0
push 0
push esi
mov dword [esp + 0x28], esi
call fcn.0040ed90
add esp, 0x10
jmp 0x40c2ca
call fcn.00403290
jmp 0x40c2c1
cmp esi, 8
jne 0x40cbf0
push edi
call fcn.004030f0
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
je 0x40cbf0
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ebx, eax
test ebx, ebx
jne 0x40c1a7
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
mov dword [eax], 0x28
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0x20], edi
mov cx, word [ebx + 0xe]
mov word [eax + 0xc], 1
mov word [eax + 0xe], cx
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x24], ecx
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [ebx + 0x1c]
cmp edi, ecx
mov dword [eax + 0x1c], edx
jle 0x40c356
mov ecx, dword [esp + 0x70]
lea esi, [ebx + 0x28]
lea edi, [eax + 0x28]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x68]
mov edx, dword [eax]
lea ecx, [edi*4]
mov edi, dword [ebx]
add edx, ecx
add edx, eax
add edi, ecx
lea eax, [esp + 0x48]
lea ecx, [esp + 0x3c]
push eax
push ecx
add edi, ebx
mov dword [esp + 0x24], edx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcessAffinityMask]
mov edx, dword [esp + 0x3c]
push edx
call fcn.0040c070
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x40c709
mov eax, dword [esp + 0x70]
cmp eax, esi
jbe 0x40c3af
mov eax, esi
mov dword [esp + 0x70], eax
cmp eax, 1
je 0x40c6a1
mov eax, dword [esp + 0x70]
push 4
push eax
call fcn.0040fcb3
add esp, 8
mov dword [esp + 0x78], eax
test eax, eax
je 0x40c558
mov esi, dword [esp + 0x68]
push 0xc
push esi
call fcn.0040fcb3
mov ecx, dword [ebx + 8]
push eax
push esi
push ecx
mov dword [esp + 0x38], eax
call fcn.0040b3e0
fild dword [esp + 0x7c]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], edx
add esp, 0x14
fidiv dword [esp + 0x28]
fadd qword [0x43f2f0]
call fcn.0040f5d8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x70]
dec eax
mov dword [esp + 0x6c], 0
test eax, eax
jbe 0x40c4f4
push 0x48
push 1
call fcn.0040fcb3
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x74]
add esp, 8
test ebp, ebp
mov dword [ecx + edx*4], eax
jne 0x40c47e
mov ecx, dword [esp + 0x20]
push 1
push ebp
push ebp
push ecx
mov ecx, dword [ebx + 8]
push ebp
push 1
push ebp
push ebp
xor edx, edx
push ebp
mov dx, word [ebx + 0xe]
push ebp
push ebp
push edx
mov edx, dword [ebx + 4]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x54]
push esi
push ecx
push edx
jmp 0x40c4c6
mov edx, dword [esp + 0x24]
lea ecx, [ebp + ebp*2]
lea ecx, [edx + ecx*4]
mov edx, dword [ecx - 4]
push edx
mov edx, dword [ecx - 8]
mov ecx, dword [ecx - 0xc]
push edx
mov edx, dword [esp + 0x28]
push ecx
add edx, ebp
xor ecx, ecx
mov cx, word [ebx + 0xe]
push edx
mov edx, dword [ebx + 8]
push ebp
push 1
push 0
push 0
push 0
push 0
push 0
push ecx
mov ecx, dword [ebx + 4]
push edx
mov edx, dword [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x54]
push esi
push edx
push ecx
push edi
push eax
call fcn.0040bf10
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0xb8]
add ebp, edx
mov edx, dword [esp + 0xbc]
add esp, 0x4c
inc eax
lea ecx, [edx - 1]
mov dword [esp + 0x6c], eax
cmp eax, ecx
jb 0x40c430
push 0x48
push 1
call fcn.0040fcb3
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
mov dword [ecx + edx*4 - 4], eax
mov edx, dword [esp + 0x2c]
lea ecx, [ebp + ebp*2]
lea ecx, [edx + ecx*4]
mov edx, dword [ecx - 4]
push edx
mov edx, dword [ecx - 8]
mov ecx, dword [ecx - 0xc]
push edx
push ecx
push esi
mov ecx, dword [ebx + 8]
push ebp
push 1
push 0
push 0
xor edx, edx
mov dx, word [ebx + 0xe]
push 0
push 0
push 0
push edx
mov edx, dword [ebx + 4]
push ecx
push edx
push esi
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x60]
push ecx
push edx
push edi
push eax
call fcn.0040bf10
add esp, 0x54
mov edi, dword [esp + 0x70]
push 4
push edi
call fcn.0040fcb3
add esp, 8
mov ebx, eax
test edi, edi
jbe 0x40c5a8
mov ebp, dword [esp + 0x78]
mov esi, ebx
sub ebp, ebx
mov dword [esp + 0x6c], edi
mov ecx, dword [esi + ebp]
lea eax, [esp + 0x70]
push eax
push 4
push ecx
push 0x40bfb0
push 0
push 0
call fcn.00410835
mov dword [esi], eax
mov eax, dword [esp + 0x84]
add esp, 0x18
add esi, 4
dec eax
mov dword [esp + 0x6c], eax
jne 0x40c579
xor esi, esi
test edi, edi
jbe 0x40c5bf
mov ebp, dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov edx, dword [ebx + esi*4]
push edx
call ebp
inc esi
cmp esi, edi
jb 0x40c5b4
xor esi, esi
test edi, edi
jbe 0x40c5ff
mov ebp, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [ebx + esi*4]
push 0xffffffffffffffff
push eax
call ebp
inc esi
cmp esi, edi
jb 0x40c5cb
test edi, edi
jbe 0x40c5ff
mov esi, dword [esp + 0x78]
mov ebp, ebx
sub ebp, esi
mov ecx, dword [esi + ebp]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [esi]
push edx
call fcn.0040fa4a
add esp, 4
add esi, 4
dec edi
jne 0x40c5e4
push ebx
call fcn.0040fa4a
mov eax, dword [esp + 0x7c]
push eax
call fcn.0040fa4a
mov eax, dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x40c623
push eax
call fcn.0040fa4a
add esp, 4
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x40c650
mov edi, dword [esp + 0x68]
test edi, edi
jbe 0x40c647
lea esi, [ebx + 4]
mov ecx, dword [esi]
push ecx
call fcn.0040fa4a
add esp, 4
add esi, 8
dec edi
jne 0x40c636
push ebx
call fcn.0040fa4a
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c683
mov edi, dword [esp + 0x64]
test edi, edi
jbe 0x40c676
mov edx, eax
lea esi, [edx + 4]
mov eax, dword [esi]
push eax
call fcn.0040fa4a
add esp, 4
add esi, 8
dec edi
jne 0x40c665
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040fa4a
add esp, 4
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
test esi, esi
je 0x40ca4f
push esi
call ebx
mov ebp, dword [esp + 0x60]
jmp 0x40ca56
push 0
push 0
call fcn.0041096e
push 0x30300
push 0x20300
mov ebp, eax
call fcn.0041096e
mov eax, dword [esp + 0x74]
mov edx, dword [ebx + 8]
push 0
push 0
push 0
push esi
xor ecx, ecx
push 0
mov cx, word [ebx + 0xe]
push esi
push eax
mov eax, dword [ebx + 4]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
push ecx
push edi
call fcn.0040b480
add esp, 0x40
push 0xfffff
push 0x9001f
call fcn.0041096e
push 0xffff
push ebp
call fcn.0041096e
add esp, 0x10
jmp 0x40c683
mov eax, dword [esp + 0x6c]
cmp eax, 0xffffffff
jne 0x40c72d
push 0x46abc0
push 5
push str.ResampleFilter
push str.Resize
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [esp + 0x6c], eax
cmp eax, 4
ja case.default.0x40c732
jmp dword [eax*4 + 0x40cc10]
mov dword [esp + 0x78], 0x3f800000
mov dword [esp + 0x6c], 0x4049b0
jmp 0x40c7a3
mov dword [esp + 0x78], 0x3f800000
mov dword [esp + 0x6c], 0x404a00
jmp 0x40c7a3
mov dword [esp + 0x78], 0x3fc00000
mov dword [esp + 0x6c], 0x404a40
jmp 0x40c7a3
mov dword [esp + 0x78], 0x40000000
mov dword [esp + 0x6c], 0x404c20
jmp 0x40c7a3
mov dword [esp + 0x78], 0x40000000
mov dword [esp + 0x6c], 0x404ab0
jmp 0x40c7a3
mov dword [esp + 0x78], 0x40400000
mov dword [esp + 0x6c], 0x404b30
mov ecx, dword [ebx + 4]
mov edx, 1
cmp ecx, edx
jne 0x40c7b5
fild dword [esp + 0x64]
jmp 0x40c7dd
mov eax, dword [esp + 0x64]
dec eax
cmp eax, edx
mov dword [esp + 0x20], eax
jg 0x40c7c6
mov dword [esp + 0x20], edx
lea eax, [ecx - 1]
cmp eax, edx
mov dword [esp + 0x14], eax
jg 0x40c7d5
mov dword [esp + 0x14], edx
fild dword [esp + 0x20]
fidiv dword [esp + 0x14]
mov ecx, dword [ebx + 8]
fstp dword [esp + 0x28]
cmp ecx, edx
jne 0x40c7ee
fild dword [esp + 0x68]
jmp 0x40c814
lea eax, [esi - 1]
cmp eax, edx
mov dword [esp + 0x20], eax
jg 0x40c7fd
mov dword [esp + 0x20], edx
lea eax, [ecx - 1]
cmp eax, edx
mov dword [esp + 0x14], eax
jg 0x40c80c
mov dword [esp + 0x14], edx
fild dword [esp + 0x20]
fidiv dword [esp + 0x14]
fstp dword [esp + 0x20]
push 8
push esi
call fcn.0040fcb3
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x40c683
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x18]
push esi
push eax
push ecx
push edx
call fcn.00404cc0
mov eax, dword [esp + 0x7c]
push 8
push eax
call fcn.0040fcb3
add esp, 0x20
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40c88a
test esi, esi
jbe 0x40c880
mov ecx, dword [esp + 0x10]
lea edi, [ecx + 4]
mov edx, dword [edi]
push edx
call fcn.0040fa4a
add esp, 4
add edi, 8
dec esi
jne 0x40c86f
mov eax, dword [esp + 0x10]
push eax
jmp 0x40c67b
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.00404cc0
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x88]
add esp, 0x18
cmp ecx, eax
jbe 0x40c8c3
mov dword [esp + 0x70], eax
jmp 0x40c8c7
mov eax, dword [esp + 0x70]
cmp eax, esi
jbe 0x40c8d1
mov eax, esi
mov dword [esp + 0x70], eax
cmp eax, 1
je 0x40c9d8
mov esi, dword [esp + 0x70]
push 4
push esi
call fcn.0040fcb3
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 8]
xor edx, edx
mov ecx, dword [esp + 0x78]
div esi
add esp, 8
xor esi, esi
mov dword [esp + 0x20], eax
lea eax, [ecx - 1]
test eax, eax
jbe 0x40c984
push 0x48
push 1
call fcn.0040fcb3
mov edx, dword [esp + 0x80]
push 0
mov ecx, dword [esp + 0x2c]
push 0
push 0
mov dword [edx + esi*4], eax
mov edx, dword [esp + 0x24]
push 0
push 0
push 0
push edx
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x94]
add ecx, ebp
push edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x54], ecx
push ecx
xor ecx, ecx
mov cx, word [ebx + 0xe]
push ebp
push ecx
mov ecx, dword [ebx + 4]
push edx
mov edx, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0x60]
push ecx
push edx
push edi
push eax
call fcn.0040bf10
mov eax, dword [esp + 0xc4]
mov ebp, dword [esp + 0x7c]
add esp, 0x54
inc esi
dec eax
cmp esi, eax
jb 0x40c908
push 0x48
push 1
call fcn.0040fcb3
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
push 0
push 0
push 0
mov dword [ecx + edx*4 - 4], eax
mov edx, dword [esp + 0x24]
push 0
push 0
mov ecx, dword [ebx + 8]
push 0
push edx
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x94]
push edx
xor edx, edx
mov dx, word [ebx + 0xe]
push ecx
push ebp
push edx
mov edx, dword [esp + 0xa0]
push ecx
mov ecx, dword [ebx + 4]
push ecx
push edx
jmp 0x40c541
push 0
push 0
call fcn.0041096e
push 0x30300
push 0x20300
mov ebp, eax
call fcn.0041096e
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 8]
push ecx
mov ecx, dword [esp + 0x80]
push edx
xor edx, edx
push ecx
mov dx, word [ebx + 0xe]
mov ecx, dword [esp + 0x80]
push eax
push 0
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [ebx + 4]
push eax
push esi
push ecx
push edi
push edx
call fcn.00404f70
add esp, 0x40
push 0xfffff
push 0x9001f
call fcn.0041096e
push 0xffff
push ebp
call fcn.0041096e
add esp, 0x10
jmp 0x40c623
mov ebp, dword [esp + 0x60]
push ebp
call ebx
mov edi, dword [esp + 0x40]
push edi
call ebx
test esi, esi
je 0x40ca6b
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x40caec
lea edx, [esp + 0x4c]
push edi
push edx
call fcn.0040f470
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
sub esp, 8
mov eax, esp
push 0x3ff78787
push 0x87878787
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
push edi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.0040e110
lea eax, [esp + 0x68]
push ebp
push eax
call fcn.0040f470
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
add esp, 0x14
mov ecx, esp
push 0x3ff78787
push 0x87878787
mov dword [ecx], edx
mov edx, dword [esp + 0x6c]
push ebp
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x74]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.0040e110
add esp, 0x1c
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40cbc9
push 0x46abc0
push 1
push str.EnableBWGamma
push str.Viewing
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
test eax, eax
je 0x40cbc9
push 0x46abc0
lea ecx, [esp + 0x2c]
push 6
push ecx
push 0x465b54
push str.BWGamma
push str.Viewing
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea edx, [esp + 0x28]
push edx
call fcn.0040f540
fst qword [esp + 0x44]
fcomp qword [0x43f3e0]
add esp, 4
fnstsw ax
test ah, 5
jp 0x40cb68
mov dword [esp + 0x40], 0x47ae147b
mov dword [esp + 0x44], 0x3f847ae1
jmp 0x40cb8b
fld qword [esp + 0x40]
fcomp qword [0x43f3d8]
fnstsw ax
and eax, 0x4100
jne 0x40cb8b
mov dword [esp + 0x40], 0x8f5c28f6
mov dword [esp + 0x44], 0x401bf5c2
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.0040f470
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
sub esp, 8
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x64]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x68]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x50]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x54]
push ecx
push edx
push edi
call fcn.0040e110
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40cbfa
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push esi
call edi
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret