Function at 0x40bfb0
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 0x40cb10
cmp dword [esp + 0x68], ebp
jle 0x40cb10
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x60]
cmp eax, ebp
je 0x40c031
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.0040f370
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.0040e010
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ebx, eax
cmp ebx, ebp
je 0x40cb10
mov cx, word [ebx + 0xe]
cmp cx, 8
jbe 0x40c04f
mov dword [ebx + 0x20], ebp
cmp esi, dword [ebx + 4]
jg 0x40c07b
mov edx, dword [esp + 0x68]
mov eax, dword [ebx + 8]
cmp edx, eax
jg 0x40c07b
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
cmp edx, ebp
mov dword [esp + 0x20], eax
je 0x40c07b
cmp eax, ebp
jne 0x40c07b
mov dword [esp + 0x6c], 5
cmp cx, 0x18
je 0x40c0c7
push ebx
xor esi, esi
call fcn.0040eb70
push ebx
mov dword [esp + 0x78], eax
call fcn.0040ebc0
mov ecx, dword [esp + 0x78]
add esp, 8
test ecx, ecx
je 0x40c176
test eax, eax
je 0x40c0ab
mov esi, 1
cmp word [ebx + 0xe], 8
jne 0x40c16e
test eax, eax
jne 0x40c16e
push ebx
call fcn.0040ec00
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 0x40caf3
cmp edi, 0x100
jg 0x40caf3
mov edx, dword [esp + 0x64]
mov eax, 0xf3e58
cmp edx, eax
jg 0x40caf3
cmp dword [esp + 0x68], eax
jg 0x40caf3
mov eax, esi
xor edx, edx
div dword [esp + 0x68]
cmp eax, ecx
jb 0x40caf3
cmp esi, 0xfffffbd7
ja 0x40caf3
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 0x40c21b
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x40cafd
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 0x40c0c7
xor esi, esi
push edi
mov si, word [ebx + 0xe]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
cmp esi, 1
jne 0x40c1a3
push edi
call fcn.00402c60
mov esi, eax
push edi
mov dword [esp + 0x20], esi
call fcn.0040eae0
add esp, 8
mov dword [esp + 0x38], eax
jmp 0x40c1ea
cmp esi, 4
jne 0x40c1d2
mov eax, dword [esp + 0x70]
push edi
test eax, eax
je 0x40c1cb
call fcn.00402ab0
mov esi, eax
push 0
push 0
push esi
mov dword [esp + 0x28], esi
call fcn.0040ec90
add esp, 0x10
jmp 0x40c1ea
call fcn.004031b0
jmp 0x40c1e1
cmp esi, 8
jne 0x40cb10
push edi
call fcn.00403010
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
je 0x40cb10
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ebx, eax
test ebx, ebx
jne 0x40c0c7
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 0x40c276
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.0040bf90
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x40c629
mov eax, dword [esp + 0x70]
cmp eax, esi
jbe 0x40c2cf
mov eax, esi
mov dword [esp + 0x70], eax
cmp eax, 1
je 0x40c5c1
mov eax, dword [esp + 0x70]
push 4
push eax
call fcn.0040fbb3
add esp, 8
mov dword [esp + 0x78], eax
test eax, eax
je 0x40c478
mov esi, dword [esp + 0x68]
push 0xc
push esi
call fcn.0040fbb3
mov ecx, dword [ebx + 8]
push eax
push esi
push ecx
mov dword [esp + 0x38], eax
call fcn.0040b300
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.0040f4d8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x70]
dec eax
mov dword [esp + 0x6c], 0
test eax, eax
jbe 0x40c414
push 0x48
push 1
call fcn.0040fbb3
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x74]
add esp, 8
test ebp, ebp
mov dword [ecx + edx*4], eax
jne 0x40c39e
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 0x40c3e6
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.0040be30
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 0x40c350
push 0x48
push 1
call fcn.0040fbb3
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.0040be30
add esp, 0x54
mov edi, dword [esp + 0x70]
push 4
push edi
call fcn.0040fbb3
add esp, 8
mov ebx, eax
test edi, edi
jbe 0x40c4c8
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 0x40bed0
push 0
push 0
call fcn.00410740
mov dword [esi], eax
mov eax, dword [esp + 0x84]
add esp, 0x18
add esi, 4
dec eax
mov dword [esp + 0x6c], eax
jne 0x40c499
xor esi, esi
test edi, edi
jbe 0x40c4df
mov ebp, dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov edx, dword [ebx + esi*4]
push edx
call ebp
inc esi
cmp esi, edi
jb 0x40c4d4
xor esi, esi
test edi, edi
jbe 0x40c51f
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 0x40c4eb
test edi, edi
jbe 0x40c51f
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.0040f94a
add esp, 4
add esi, 4
dec edi
jne 0x40c504
push ebx
call fcn.0040f94a
mov eax, dword [esp + 0x7c]
push eax
call fcn.0040f94a
mov eax, dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x40c543
push eax
call fcn.0040f94a
add esp, 4
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x40c570
mov edi, dword [esp + 0x68]
test edi, edi
jbe 0x40c567
lea esi, [ebx + 4]
mov ecx, dword [esi]
push ecx
call fcn.0040f94a
add esp, 4
add esi, 8
dec edi
jne 0x40c556
push ebx
call fcn.0040f94a
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c5a3
mov edi, dword [esp + 0x64]
test edi, edi
jbe 0x40c596
mov edx, eax
lea esi, [edx + 4]
mov eax, dword [esi]
push eax
call fcn.0040f94a
add esp, 4
add esi, 8
dec edi
jne 0x40c585
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040f94a
add esp, 4
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
test esi, esi
je 0x40c96f
push esi
call ebx
mov ebp, dword [esp + 0x60]
jmp 0x40c976
push 0
push 0
call fcn.00410879
push 0x30300
push 0x20300
mov ebp, eax
call fcn.00410879
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.0040b3a0
add esp, 0x40
push 0xfffff
push 0x9001f
call fcn.00410879
push 0xffff
push ebp
call fcn.00410879
add esp, 0x10
jmp 0x40c5a3
mov eax, dword [esp + 0x6c]
cmp eax, 0xffffffff
jne 0x40c64d
push 0x46ab80
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.0x40c652
jmp dword [eax*4 + 0x40cb30]
mov dword [esp + 0x78], 0x3f800000
mov dword [esp + 0x6c], 0x4048d0
jmp 0x40c6c3
mov dword [esp + 0x78], 0x3f800000
mov dword [esp + 0x6c], 0x404920
jmp 0x40c6c3
mov dword [esp + 0x78], 0x3fc00000
mov dword [esp + 0x6c], 0x404960
jmp 0x40c6c3
mov dword [esp + 0x78], 0x40000000
mov dword [esp + 0x6c], 0x404b40
jmp 0x40c6c3
mov dword [esp + 0x78], 0x40000000
mov dword [esp + 0x6c], 0x4049d0
jmp 0x40c6c3
mov dword [esp + 0x78], 0x40400000
mov dword [esp + 0x6c], 0x404a50
mov ecx, dword [ebx + 4]
mov edx, 1
cmp ecx, edx
jne 0x40c6d5
fild dword [esp + 0x64]
jmp 0x40c6fd
mov eax, dword [esp + 0x64]
dec eax
cmp eax, edx
mov dword [esp + 0x20], eax
jg 0x40c6e6
mov dword [esp + 0x20], edx
lea eax, [ecx - 1]
cmp eax, edx
mov dword [esp + 0x14], eax
jg 0x40c6f5
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 0x40c70e
fild dword [esp + 0x68]
jmp 0x40c734
lea eax, [esi - 1]
cmp eax, edx
mov dword [esp + 0x20], eax
jg 0x40c71d
mov dword [esp + 0x20], edx
lea eax, [ecx - 1]
cmp eax, edx
mov dword [esp + 0x14], eax
jg 0x40c72c
mov dword [esp + 0x14], edx
fild dword [esp + 0x20]
fidiv dword [esp + 0x14]
fstp dword [esp + 0x20]
push 8
push esi
call fcn.0040fbb3
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x40c5a3
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.00404be0
mov eax, dword [esp + 0x7c]
push 8
push eax
call fcn.0040fbb3
add esp, 0x20
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40c7aa
test esi, esi
jbe 0x40c7a0
mov ecx, dword [esp + 0x10]
lea edi, [ecx + 4]
mov edx, dword [edi]
push edx
call fcn.0040f94a
add esp, 4
add edi, 8
dec esi
jne 0x40c78f
mov eax, dword [esp + 0x10]
push eax
jmp 0x40c59b
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.00404be0
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x88]
add esp, 0x18
cmp ecx, eax
jbe 0x40c7e3
mov dword [esp + 0x70], eax
jmp 0x40c7e7
mov eax, dword [esp + 0x70]
cmp eax, esi
jbe 0x40c7f1
mov eax, esi
mov dword [esp + 0x70], eax
cmp eax, 1
je 0x40c8f8
mov esi, dword [esp + 0x70]
push 4
push esi
call fcn.0040fbb3
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 0x40c8a4
push 0x48
push 1
call fcn.0040fbb3
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.0040be30
mov eax, dword [esp + 0xc4]
mov ebp, dword [esp + 0x7c]
add esp, 0x54
inc esi
dec eax
cmp esi, eax
jb 0x40c828
push 0x48
push 1
call fcn.0040fbb3
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 0x40c461
push 0
push 0
call fcn.00410879
push 0x30300
push 0x20300
mov ebp, eax
call fcn.00410879
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.00404e90
add esp, 0x40
push 0xfffff
push 0x9001f
call fcn.00410879
push 0xffff
push ebp
call fcn.00410879
add esp, 0x10
jmp 0x40c543
mov ebp, dword [esp + 0x60]
push ebp
call ebx
mov edi, dword [esp + 0x40]
push edi
call ebx
test esi, esi
je 0x40c98b
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x40ca0c
lea edx, [esp + 0x4c]
push edi
push edx
call fcn.0040f370
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.0040e010
lea eax, [esp + 0x68]
push ebp
push eax
call fcn.0040f370
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.0040e010
add esp, 0x1c
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40cae9
push 0x46ab80
push 1
push str.EnableBWGamma
push str.Viewing
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
test eax, eax
je 0x40cae9
push 0x46ab80
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.0040f440
fst qword [esp + 0x44]
fcomp qword [0x43f3d8]
add esp, 4
fnstsw ax
test ah, 5
jp 0x40ca88
mov dword [esp + 0x40], 0x47ae147b
mov dword [esp + 0x44], 0x3f847ae1
jmp 0x40caab
fld qword [esp + 0x40]
fcomp qword [0x43f3d0]
fnstsw ax
and eax, 0x4100
jne 0x40caab
mov dword [esp + 0x40], 0x8f5c28f6
mov dword [esp + 0x44], 0x401bf5c2
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.0040f370
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.0040e010
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 0x40cb1a
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