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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x49e014]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov edi, dword [0x4a05c4]
mov esi, edi
mov dword [esp + 0xc], esi
mov ecx, dword [esi + 0x1ec]
cmp ecx, dword [esi + 0x1f0]
je 0x407dfa
call fcn.00407110
mov dword [esi + 0x1d8], eax
test eax, eax
jne 0x407de8
or ebx, 0xffffffff
jmp 0x408704
mov eax, dword [esi + 0x1ec]
mov dword [esi + 0x1f0], eax
mov edi, dword [0x4a05c4]
cmp dword [edi + 0x1a8], 0
mov ebx, dword [0x4a05c8]
je 0x407e26
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x407eb9
push eax
push dword [0x4a05a4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x407eb9
test byte [ebx + 0xc], 1
je 0x407ea5
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x407ea5
cmp word [ecx], 0
je 0x407ea5
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407e40
sub ecx, edx
mov edx, dword [edi + 0x80]
sar ecx, 1
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x407e60
sub edx, esi
lea eax, [ecx + 0xa]
sar edx, 1
add eax, edx
push 2
push eax
call fcn.004643e4
push dword [ebx + 0x10]
mov esi, eax
push dword [edi + 0x80]
push str._s____s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, esi
call fcn.00407310
push esi
call fcn.004643fa
add esp, 0x1c
jmp 0x407eb9
mov ecx, dword [edi + 0x80]
test ecx, ecx
jne 0x407eb4
mov ecx, str.Untitled
call fcn.00407310
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0xd8]
test eax, eax
je 0x407f0b
mov ebx, dword [ebx + 0x1f0]
xor esi, esi
test eax, eax
jle 0x407f07
mov ecx, dword [esp + 0xc]
xor edi, edi
nop dword [eax]
mov eax, dword [ecx + 0xdc]
mov eax, dword [edi + eax + 0x3c]
test eax, eax
je 0x407efb
push ebx
push ecx
push 0x4a0590
call eax
mov ecx, dword [esp + 0xc]
inc esi
add edi, 0x4c
cmp esi, dword [ecx + 0xd8]
jl 0x407ee0
mov ebx, dword [esp + 0xc]
mov edx, dword [0x4a05c8]
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], esi
mov dword [edx + 0x20], 0
mov dword [edx + 0x1c], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x24], 0
mov dword [edx + 0x78], 0
mov dword [edx + 0x74], 0
cmp dword [ebx + 0x1a8], esi
je 0x407f72
test dword [ebx + 0x1b0], 0x200000
je 0x407f72
mov esi, dword [ebx + 0x1bc]
mov edi, dword [ebx + 0x1c0]
mov ecx, dword [edx + 0xc]
jmp 0x407fa1
mov ecx, dword [edx + 0xc]
test ecx, 0x100
je 0x407f8b
mov esi, dword [0x4a0728]
mov edi, dword [0x4a058c]
jmp 0x407fa1
movsx esi, word [ebx + 0x1c]
cmp esi, dword [edx]
movsx edi, word [ebx + 0x1e]
cmovge esi, dword [edx]
mov eax, dword [edx + 4]
cmp edi, eax
jl 0x407fa1
mov edi, eax
mov dword [edx + 0x958], esi
mov dword [edx + 0x95c], edi
test ecx, 0x800
jne 0x4080e8
push 0
push dword [0x4a059c]
call dword [sym.imp.MMFS2.dll_Ordinal_34]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x3cc]
mov dword [esp + 0x24], eax
call dword [sym.imp.MMFS2.dll_Ordinal_173]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x18], eax
mov ecx, eax
push dword [ebx + 0x1cc]
push edi
push esi
call dword [sym.imp.MMFS2.dll_Ordinal_372]
mov esi, dword [esp + 0x10]
push ebx
push 0x409320
mov ecx, dword [esi + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_982]
test byte [0x4a0568], 2
je 0x408044
test byte [0x4a05ac], 0x40
je 0x408044
mov eax, dword [ebx + 0x3bc]
test eax, eax
je 0x408030
test dword [eax], 0x40000000
je 0x408030
mov edx, 1
jmp 0x408032
xor edx, edx
mov ecx, ebx
call fcn.004013a0
mov ecx, dword [esi + 0x18]
push edx
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_1106]
cmp byte [ebx + 0x3f8], 0
je 0x40805e
push ecx
mov ecx, dword [esi + 0x18]
mov dword [esp], 0x3f800000
call dword [sym.imp.MMFS2.dll_Ordinal_1017]
cmp dword [0x4a0694], 0
je 0x408084
cmp dword [ebx + 0x1a8], 0
jne 0x408084
movzx eax, byte [ebx + 0x7d]
mov ecx, dword [esi + 0x18]
shl eax, 4
or eax, 5
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_876]
mov eax, dword [ebx + 0x23c]
test eax, eax
je 0x408098
mov ecx, dword [esi + 0x18]
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_361]
push dword [esi + 0x18]
push dword [0x4a059c]
call dword [sym.imp.MMFS2.dll_Ordinal_32]
mov edx, esi
test byte [edx + 0xc], 4
je 0x4080d1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4080d1
mov esi, dword [esp + 0x24]
mov eax, dword [edx + 0x18]
push eax
test esi, esi
je 0x4080c5
mov ecx, esi
call dword [sym.imp.MMFS2.dll_Ordinal_342]
mov edx, dword [esp + 0x10]
jmp 0x4080e8
test byte [0x4a05ac], 0x10
jne 0x4080e8
push dword [edx + 8]
mov ecx, dword [edx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_445]
mov edx, esi
mov ecx, dword [esp + 0x10]
movsx eax, word [edx + 0x8f0]
mov edx, dword [edx + 0x50]
mov edi, dword [ecx + 0x44]
lea esi, [eax*2 + 0x10]
test edi, edi
jle 0x408137
add edx, 2
cmp word [edx + 0xe], 0
jbe 0x40812f
movzx ecx, word [edx]
mov eax, dword [ebx + 0x198]
movzx eax, word [eax + ecx*2]
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x400]
add ecx, ecx
cmp word [eax + ecx*8 + 2], 2
jae 0x40812f
inc esi
add edx, 0x24
sub edi, 1
jne 0x408107
push esi
push 0
push 1
push dword [0x4a059c]
call dword [sym.imp.MMFS2.dll_Ordinal_31]
call fcn.00406fb0
mov eax, dword [0x4a05c4]
cmp dword [eax + 0x1fc], 0
jne 0x40818b
cmp byte [0x4a0548], 0
jne 0x40818b
mov esi, dword [sym.imp.USER32.dll_GetInputState]
call esi
test eax, eax
je 0x40818b
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
call edi
call esi
test eax, eax
jne 0x408176
push 0
push dword [0x4a059c]
call dword [sym.imp.MMFS2.dll_Ordinal_63]
push dword [0x4a05a0]
mov esi, dword [sym.imp.USER32.dll_IsWindowVisible]
call esi
test eax, eax
jne 0x4081d8
cmp dword [ebx + 0x1a8], eax
jne 0x4081d8
call fcn.004557f0
call fcn.004556b0
mov ax, word [ebx + 0x14]
mov ecx, 0x180
and ax, cx
mov ecx, pe_nt_image_headers32
cmp ax, cx
jne 0x4081d8
call fcn.004574f0
push dword [0x4a05a4]
call esi
test eax, eax
jne 0x4081e9
call fcn.004552d0
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x980]
test eax, eax
je 0x408208
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_174]
mov dword [esi + 0x980], 0
cmp dword [0x4a05d8], 0
jne 0x40821d
push dword [0x4a059c]
call dword [sym.imp.MMFS2.dll_Ordinal_832]
cmp word [0x4a05ae], 3
jne 0x408263
mov eax, dword [ebx + 0x1a8]
test eax, eax
jne 0x408236
mov eax, dword [esi + 0x14]
jmp 0x40824f
lea ecx, [eax]
mov eax, dword [ecx + 0x1a8]
test eax, eax
jne 0x408236
mov eax, dword [ecx + 0x1d8]
test eax, eax
je 0x408263
mov eax, dword [eax + 0x14]
test eax, eax
je 0x408263
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x408263
push 0
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_742]
mov ecx, esi
call fcn.00408a30
test byte [esi + 0xc], 2
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
je 0x4082b8
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4082ae
cmp dword [ebx + 0x1a8], eax
jne 0x4082ae
mov eax, 0x200
test word [ebx + 0x14], ax
je 0x4082ae
mov eax, 0x400
test word [ebx + 0x16], ax
jne 0x4082ae
push 3
push dword [0x4a05a0]
call edi
call fcn.004552d0
call fcn.00455a50
mov edx, dword [0x4a05c8]
mov ebx, dword [edx + 0x80]
mov dword [edx + 0x90c], 0
mov dword [esp + 0x18], ebx
cmp word [ebx], 0
je 0x40835c
nop dword [eax]
movzx ecx, byte [ebx + 3]
lea edi, [ebx + 0x10]
movzx ebx, byte [ebx + 2]
add ebx, ecx
je 0x40833f
nop
movsx esi, byte [edi + 0xc]
mov eax, dword [edi + 2]
test esi, esi
jle 0x408335
sar eax, 0x1f
lea ecx, [edi + 0xe]
and eax, 2
add ecx, eax
cmp word [ecx + 2], 0x2b
jne 0x40832b
movsx eax, word [ecx + 4]
sub eax, 1
je 0x408324
sub eax, 1
jne 0x40832b
or dword [edx + 0x90c], 2
jmp 0x40832b
or dword [edx + 0x90c], 1
movsx eax, word [ecx]
dec esi
add ecx, eax
test esi, esi
jg 0x408306
movsx eax, word [edi]
dec ebx
add edi, eax
test ebx, ebx
jg 0x4082f0
mov ebx, dword [esp + 0x18]
movsx eax, word [ebx]
sub ebx, eax
mov dword [esp + 0x18], ebx
cmp word [ebx], 0
jne 0x4082e0
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0044be30
test byte [esi + 0xc], 0x20
mov dword [esi + 0x960], eax
push eax
je 0x40838d
mov eax, dword [esi + 4]
add eax, 0x10
push eax
mov eax, dword [esi]
add eax, 0x40
push eax
push 0xfffffffffffffff0
push 0xffffffffffffffc0
push dword [0x4a059c]
call dword [sym.imp.MMFS2.dll_Ordinal_102]
jmp 0x40839d
push 0x10
push 0x40
push dword [0x4a059c]
call dword [sym.imp.MMFS2.dll_Ordinal_101]
lea ecx, [esp + 0x18]
call fcn.00405850
mov ecx, dword [esp + 0x18]
sub ecx, dword [0x4a0768]
mov eax, dword [esp + 0x1c]
sbb eax, dword [0x4a076c]
push 0
push 0xf4240
push eax
push ecx
call fcn.0047bfc0
mov ecx, dword [0x4a05c4]
mov dword [ecx + 0x1e0], eax
xor ecx, ecx
cmp dword [esi + 0x60], ecx
setne cl
call fcn.0042b7c0
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x408443
push 1
push dword [0x4a059c]
call dword [sym.imp.MMFS2.dll_Ordinal_63]
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0x1d8]
call fcn.00406220
mov eax, dword [esi + 0x3cc]
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_174]
mov dword [esi + 0x1d8], 0
test eax, eax
je 0x40842f
push eax
call edi
mov dword [esi + 0x3cc], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408704
push eax
call edi
jmp 0x408704
cmp dword [esi + 0x60], 0
je 0x408490
mov esi, dword [0x4a05c8]
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x408462
call fcn.0042baf0
mov dword [esi + 0x74], eax
test eax, eax
je 0x408472
mov esi, dword [esp + 0xc]
mov dword [esi + 0x1e4], 5
jmp 0x40849e
mov eax, dword [esp + 0x24]
test eax, eax
mov edx, dword [esp + 0x14]
cmovne edx, eax
xor ecx, ecx
call fcn.00407840
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x40849e
jmp 0x408494
mov esi, dword [esp + 0xc]
mov dword [esi + 0x1e4], 3
push dword [0x4a05a4]
call dword [sym.imp.USER32.dll_LockWindowUpdate]
cmp dword [esi + 0x1a8], 0
jne 0x40856d
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x408510
test byte [0x4a05ac], 0x10
je 0x4084d8
cmp dword [0x4a05d8], eax
jne 0x4084e4
test dword [esi + 0x1b0], 0x4000000
je 0x4084e8
push 0
jmp 0x4084ea
push 1
push dword [0x4a05a4]
call edi
mov eax, 0x400
test word [esi + 0x16], ax
jne 0x408553
movzx eax, byte [esi + 0x15]
and eax, 2
or eax, 1
push eax
push dword [0x4a05a0]
jmp 0x408551
push dword [0x4a05a4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x408527
call fcn.004552d0
jmp 0x408553
test byte [0x4a05ac], 0x10
je 0x408539
cmp dword [0x4a05d8], 0
jne 0x408545
test dword [esi + 0x1b0], 0x4000000
je 0x408549
push 0
jmp 0x40854b
push 1
push dword [0x4a05a4]
call edi
push 0
push 0
push 0x30f
push dword [0x4a05a0]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x408679
mov ecx, dword [esp + 0xc]
mov esi, dword [esi + 0x1bc]
mov eax, dword [ecx + 0x1b0]
mov edi, dword [ecx + 0x1c0]
test al, 0x20
je 0x4085f2
test eax, 0x1000000
jne 0x4085e7
push 0xffffffffffffffec
push dword [0x4a05a4]
mov dword [esp + 0x38], esi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], edi
call esi
push 0xfffffffffffffff0
push dword [0x4a05a4]
mov edi, eax
call esi
push edi
push 0
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
sub esi, dword [esp + 0x28]
sub edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
jmp 0x4085f2
and eax, 0xfeffffff
mov dword [ecx + 0x1b0], eax
test byte [ecx + 0x14], 0x10
je 0x408618
push dword [0x4a059c]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
or ax, 2
movzx eax, ax
push eax
push dword [0x4a059c]
call dword [sym.imp.MMFS2.dll_Ordinal_17]
push dword [0x4a05a4]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x40863b
push 0x16
push edi
push esi
push eax
push eax
push eax
push dword [0x4a05a4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x1b4], 0
je 0x408679
test byte [0x4a05ac], 0x10
je 0x40865a
cmp dword [0x4a05d8], 0
jne 0x408666
test dword [esi + 0x1b0], 0x4000000
je 0x40866a
push 0
jmp 0x40866c
push 1
push dword [0x4a05a4]
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov eax, dword [esi + 0x3cc]
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_174]
test eax, eax
je 0x40869e
push eax
call edi
mov dword [esi + 0x3cc], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4086a9
push eax
call edi
cmp dword [0x4a05d8], 0
je 0x408704
cmp word [0x4a05ae], 3
jne 0x408704
cmp dword [0x4a05a8], 0
je 0x408704
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x408700
mov edi, dword [sym.imp.GDI32.dll_SelectPalette]
push 0
push dword [0x4a05a8]
push ebx
call edi
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 1
push esi
push ebx
call edi
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
push 1
push dword [0x4a059c]
call dword [sym.imp.MMFS2.dll_Ordinal_63]
mov eax, ebx
test ebx, ebx
je 0x408722
mov dword [esi + 0x1e4], 6
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret