Function at 0x402f10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x138
xor eax, eax
mov ecx, 0x10
lea edx, [esp + 0xb8]
lea esi, [esp + 0xc8]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x10
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa8], esi
call fcn.0040c160
mov eax, esp
lea ecx, [esp + 0xb8]
mov dword [eax], ecx
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
call eax
sub esp, 4
mov ecx, dword [esp + 0xa8]
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov edi, esp
mov dword [edi + 4], esi
mov dword [edi], edx
mov dword [edi + 8], 0xd15
mov edx, dword [sym.imp.USER32.dll_MonitorFromPoint]
mov dword [esp + 0xa4], eax
call edx
sub esp, 0xc
mov ecx, esp
lea edx, [esp + 0x120]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x14], 0x1b1879
mov dword [ecx + 0x10], 0xb4c
mov dword [ecx + 0xc], 0x35f
mov dword [ecx + 8], 0xa2c
mov dword [ecx + 4], 0x975
mov dword [ecx], 0x2bb96a
mov ecx, dword [sym.imp.USER32.dll_TrackPopupMenu]
mov dword [esp + 0xa0], eax
call ecx
sub esp, 0x1c
xor ecx, ecx
lea edx, [esp + 0xd0]
lea esi, [esp + 0xb4]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], edx
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ecx
jmp 0x403057
mov eax, dword [esp + 0x8c]
add eax, 1
cmp eax, 0x395
mov dword [esp + 0x88], eax
je 0x403193
jmp 0x4030ca
mov eax, dword [esp + 0x84]
add eax, 1
cmp eax, 0x125
mov dword [esp + 0x90], eax
je 0x403399
mov eax, dword [esp + 0x90]
mov ecx, esp
lea edx, [esp + 0x100]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0xc], 0x636
mov dword [ecx + 8], 0x36f
mov dword [ecx + 4], 0x636
mov dword [ecx], 0x4029
mov ecx, dword [sym.imp.KERNEL32.dll_UnlockFileEx]
mov dword [esp + 0x84], eax
call ecx
sub esp, 0x14
mov ecx, dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [esp + 0x80], eax
call ecx
mov ecx, esp
mov dword [ecx], 0xed9
mov ecx, dword [sym.imp.GDI32.dll_GdiSetBatchLimit]
mov dword [esp + 0x7c], eax
call ecx
sub esp, 4
xor ecx, ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x88], ecx
mov eax, dword [esp + 0x88]
mov ecx, 0xaaaaaaab
mov dword [esp + 0x8c], eax
mul ecx
shr edx, 3
imul eax, edx, 0xc
mov ecx, dword [esp + 0x8c]
sub ecx, eax
mov eax, ecx
sub eax, 0xa
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], eax
je 0x403148
jmp 0x4030ff
mov eax, dword [esp + 0x74]
sub eax, 1
mov dword [esp + 0x6c], eax
jne 0x403016
jmp 0x403112
mov byte [esp + 0xff], 1
mov eax, esp
lea ecx, [esp + 0xff]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0xe38
mov dword [eax + 4], 0xe38
mov dword [eax], 0xb018f6
mov eax, dword [sym.imp.ADVAPI32.dll_CryptSetProvParam]
call eax
sub esp, 0x10
mov dword [esp + 0x68], eax
mov eax, esp
mov dword [eax + 4], 0x8e6a4b
mov dword [eax], 0x340bfd
mov eax, dword [sym.imp.GDI32.dll_PaintRgn]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx + 0xc], 0xc87
mov dword [ecx + 8], 0x812
mov dword [ecx + 4], 0x42570e
mov dword [ecx], 0x42570e
mov dword [esp + 0x64], eax
call sub.OLEAUT32.dll_VarR8Pow
sub esp, 0x10
mov dword [esp + 0x60], eax
jmp 0x403016
mov dword [esp + 0x130], 0xcfc
mov eax, esp
lea ecx, [esp + 0x130]
mov dword [eax + 4], ecx
mov dword [eax], 0x2a7d28
mov eax, dword [sym.imp.ADVAPI32.dll_GetNumberOfEventLogRecords]
call eax
sub esp, 8
mov ecx, dword [esp + 0x84]
sub ecx, 0xc
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
je 0x403238
jmp 0x4031d0
mov eax, dword [esp + 0x84]
sub eax, 0x4d
mov dword [esp + 0x54], eax
je 0x4031ed
jmp 0x4031e2
xor eax, eax
mov dword [esp + 0x50], eax
jmp 0x40329a
mov eax, 0x4eb661
mov dword [esp + 0x134], eax
mov eax, esp
lea ecx, [esp + 0x134]
mov dword [eax + 4], ecx
mov dword [eax], 0x5e1
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x52a
mov dword [ecx], 0x4081a3
mov ecx, dword [sym.imp.USER32.dll_GetClassWord]
mov dword [esp + 0x4c], eax
call ecx
sub esp, 8
mov word [esp + 0x4a], ax
lea eax, [esp + 0xf0]
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf0], 0
mov ecx, dword [esp + 0x94]
mov dword [ecx], eax
mov eax, esp
lea edx, [esp + 0xb4]
mov dword [eax + 4], edx
mov dword [eax], 0x425716
mov eax, dword [sym.imp.ADVAPI32.dll_QueryUsersOnEncryptedFile]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x289145
mov ecx, dword [sym.imp.GDI32.dll_UnrealizeObject]
mov dword [esp + 0x44], eax
call ecx
sub esp, 4
mov dword [esp + 0x40], eax
jmp 0x403039
mov eax, dword [esp + 0x50]
mov ecx, esp
mov dword [ecx], 0xa68993
mov ecx, dword [sym.imp.GDI32.dll_GetLayout]
mov dword [esp + 0x3c], eax
call ecx
sub esp, 4
mov ecx, dword [esp + 0x3c]
add ecx, 1
mov edx, esp
mov dword [edx + 0xc], 0x8ea
mov dword [edx + 8], 0x315
mov dword [edx + 4], 0x315
mov dword [edx], 0x4ae31c
mov edx, dword [sym.imp.GDI32.dll_FloodFill]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
call edx
sub esp, 0x10
xor ecx, ecx
mov edx, 0x1c
mov esi, dword [esp + 0x98]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x1c
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
call fcn.0040c160
mov eax, esp
lea ecx, [esp + 0xd0]
mov dword [eax + 4], ecx
mov dword [eax], 0xf48aa5
mov eax, dword [sym.imp.USER32.dll_SetMenuInfo]
call eax
sub esp, 8
mov ecx, esp
lea edx, [esp + 0x118]
mov dword [ecx + 4], edx
mov dword [ecx], 0x1a1d4a
mov ecx, dword [sym.imp.GDI32.dll_GetAspectRatioFilterEx]
mov dword [esp + 0x24], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0xcc7
mov dword [ecx], 0xc9a410
mov ecx, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov dword [esp + 0x20], eax
call ecx
sub esp, 8
mov ecx, dword [esp + 0x34]
cmp ecx, 0xa
mov dword [esp + 0x1c], eax
mov dword [esp + 0x50], ecx
jne 0x40329a
jmp 0x403039
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret