Function at 0x4037fa
Capabilities:
64-bit execution via heavens gate
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
call fcn.00403ab5
test eax, eax
jne 0x403ab0
mov ecx, 0x6a4abc5b
call fcn.00403b99
test eax, eax
je 0x403ab0
mov dword [esp + 4], eax
mov ecx, 0x3cfa685d
call fcn.00403b99
test eax, eax
je 0x403ab0
mov dword [esp + 8], eax
mov ecx, eax
mov edx, 0xc9616ee
call fcn.00403c01
test eax, eax
je 0x403ab0
mov dword [esp + 0xc], eax
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0x18]
mov dword [esp + 0x10], edx
push 0x6fc
push 8
push edx
call eax
test eax, eax
je 0x403ab0
mov ecx, eax
lea eax, [eax + 0xf]
and eax, 0xfffffff0
mov dword [eax - 4], ecx
mov dword [esp], eax
lea ecx, [eax + 0x54]
mov dword [eax], ecx
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
mov dword [eax + 4], ecx
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
mov dword [eax + 0x24], ecx
lea eax, [eax + 0x54]
mov ecx, dword fs:[0x18]
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x20], edx
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov edx, dword [esp + 0xc]
mov dword [eax + 0x68], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 0x10], edx
push ebx
push ebp
call fcn.004038d1
jmp 0x4038db
push ebx
lea ebx, reloc.MSVFW32.dll_DrawDibDraw
lea ebp, [eax + 0x70]
mov ecx, dword [eax]
mov edx, dword [ebx]
test edx, edx
je 0x4038fd
call fcn.00403c01
mov dword [ebp], eax
lea ebx, [ebx + 4]
lea ebp, [ebp + 8]
jmp 0x4038e7
pop ebx
mov edx, dword [esp + 8]
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
mov dword [edx + 8], ecx
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
mov dword [edx + 0xc], ecx
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
mov dword [edx + 0x10], ecx
lea ecx, [edx + 0x28]
mov edx, dword [edx]
mov eax, dword [edx + reloc.MSVFW32.dll_DrawDibDraw]
lea edx, [esp + 0xc]
push edx
push 0x2c
push ecx
push 0
call eax
mov edx, dword [esp + 8]
mov edx, dword [edx]
test eax, eax
jns 0x403942
pop ebp
pop ebx
jmp 0x4039ae
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
mov dword [edx + reloc.MSVFW32.dll_DrawDibDraw], ecx
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
mov dword [edx + reloc.MSVFW32.dll_DrawDibDraw], ecx
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
mov dword [edx + reloc.MSVFW32.dll_DrawDibDraw], ecx
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
mov dword [edx + reloc.MSVFW32.dll_DrawDibDraw], ecx
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
mov dword [edx + reloc.MSVFW32.dll_DrawDibDraw], ecx
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
mov dword [edx + reloc.MSVFW32.dll_DrawDibDraw], ecx
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
mov dword [edx + reloc.MSVFW32.dll_DrawDibDraw], ecx
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
mov dword [edx + reloc.MSVFW32.dll_DrawDibDraw], ecx
pop ebp
pop ebx
mov eax, dword [edx + 0xf0]
test eax, eax
jne 0x4039cc
mov eax, dword [edx + 0x70]
test eax, eax
je 0x403ab0
mov ecx, dword [esp]
mov edx, dword [edx + 0x10]
push ecx
push 0
push edx
call eax
xor eax, eax
jmp 0x403ab0
xor ecx, ecx
dec ecx
lea edx, [esp + 4]
push 0
push 4
push edx
push 0x1a
push ecx
call eax
mov edx, dword [esp]
mov edx, dword [edx]
test eax, eax
js 0x4039ae
add esp, 0xffffffce
mov eax, esp
mov ecx, 0x50004e
mov dword [eax], ecx
lea eax, [eax + 4]
mov ecx, 0x53005a
mov dword [eax], ecx
lea eax, [eax + 4]
mov ecx, 0x45005f
mov dword [eax], ecx
lea eax, [eax + 4]
mov ecx, 0x530041
mov dword [eax], ecx
lea eax, [eax + 4]
mov ecx, 0x5f004d
mov dword [eax], ecx
lea eax, [eax + 4]
mov ecx, 0x4f004d
mov dword [eax], ecx
lea eax, [eax + 4]
mov ecx, 0x530044
mov dword [eax], ecx
lea eax, [eax + 4]
mov ecx, 0x310030
mov dword [eax], ecx
lea eax, [eax + 4]
mov dword [esp + 0x36], ebx
mov ebx, eax
mov eax, dword [esp + 0x32]
xor ecx, ecx
xor edx, edx
mov cl, 4
mov dl, al
shr dl, 4
and dl, 0xf
add dl, 0x30
mov dword [ebx], edx
lea ebx, [ebx + 2]
mov dl, al
and dl, 0xf
add dl, 0x30
mov dword [ebx], edx
lea ebx, [ebx + 2]
dec ecx
je 0x403a70
shr eax, 8
jmp 0x403a4b
mov ebx, dword [esp + 0x36]
mov eax, dword [esp + 0x32]
mov eax, dword [eax]
mov eax, dword [eax + reloc.MSVFW32.dll_DrawDibDraw]
mov ecx, esp
lea edx, [esp + 0x20]
push 8
push edx
push 0x10
push ecx
push 0
call eax
add esp, 0x32
test eax, eax
jns 0x403aa1
mov edx, dword [esp]
mov edx, dword [edx]
jmp 0x4039ae
mov eax, dword [esp]
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x404865
mov esp, ebp
pop ebp
ret
mov word [ebp - 4], fs
mov ecx, 0x2b
mov fs, cx
and esp, 0xfffffff0
push 0x33
call 0x40487a
add dword [esp], 5
retf