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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x499014]
xor eax, esp
mov dword [esp + 0x28], eax
mov edx, dword [0x49b5b4]
push ebx
push esi
push edi
mov ecx, dword [edx + 0x1ec]
mov ebx, dword [edx + 0x1f0]
mov dword [esp + 0xc], edx
cmp ecx, ebx
je 0x40775a
call fcn.00406db0
mov edx, dword [esp + 0xc]
mov dword [edx + 0x1d8], eax
test eax, eax
jne 0x40774e
or ebx, 0xffffffff
mov edi, edx
jmp 0x407e84
mov ebx, dword [edx + 0x1ec]
mov dword [edx + 0x1f0], ebx
mov eax, dword [edx + 0xd8]
test eax, eax
je 0x407797
xor esi, esi
test eax, eax
jle 0x407797
xor edi, edi
nop dword [eax]
mov eax, dword [edx + 0xdc]
mov eax, dword [edi + eax + 0x3c]
test eax, eax
je 0x40778b
push ebx
push edx
push 0x49b580
call eax
mov edx, dword [esp + 0xc]
inc esi
add edi, 0x4c
cmp esi, dword [edx + 0xd8]
jl 0x407770
mov edx, dword [0x49b5b8]
xor esi, esi
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0
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
mov dword [esp + 0x20], esi
cmp dword [ebx + 0x1a8], esi
je 0x407802
test dword [ebx + 0x1b0], 0x200000
je 0x407802
mov esi, dword [ebx + 0x1bc]
mov edi, dword [ebx + 0x1c0]
mov ecx, dword [edx + 0xc]
jmp 0x407831
mov ecx, dword [edx + 0xc]
test ecx, 0x100
je 0x40781b
mov esi, dword [0x49b71c]
mov edi, dword [0x49b718]
jmp 0x407831
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 0x407831
mov edi, eax
mov dword [edx + 0x958], esi
mov dword [edx + 0x95c], edi
test ecx, 0x800
jne 0x407978
push 0
push dword [0x49b58c]
call dword [sym.imp.MMFS2.dll_Ordinal_34]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x3cc]
mov dword [esp + 0x20], 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 0x4089c0
mov ecx, dword [esi + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_982]
test byte [0x49b55c], 2
je 0x4078d4
test byte [0x49b59c], 0x40
je 0x4078d4
mov eax, dword [ebx + 0x3bc]
test eax, eax
je 0x4078c0
test dword [eax], 0x40000000
je 0x4078c0
mov edx, 1
jmp 0x4078c2
xor edx, edx
mov ecx, ebx
call fcn.00401370
mov ecx, dword [esi + 0x18]
push edx
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_1106]
cmp byte [ebx + 0x3f8], 0
je 0x4078ee
push ecx
mov ecx, dword [esi + 0x18]
mov dword [esp], 0x3f800000
call dword [sym.imp.MMFS2.dll_Ordinal_1017]
cmp dword [0x49b684], 0
je 0x407914
cmp dword [ebx + 0x1a8], 0
jne 0x407914
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 0x407928
mov ecx, dword [esi + 0x18]
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_361]
push dword [esi + 0x18]
push dword [0x49b58c]
call dword [sym.imp.MMFS2.dll_Ordinal_32]
mov edx, esi
test byte [edx + 0xc], 4
je 0x407961
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x407961
mov esi, dword [esp + 0x20]
mov eax, dword [edx + 0x18]
push eax
test esi, esi
je 0x407955
mov ecx, esi
call dword [sym.imp.MMFS2.dll_Ordinal_342]
mov edx, dword [esp + 0x10]
jmp 0x407978
test byte [0x49b59c], 0x10
jne 0x407978
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 esi, dword [ecx + 0x44]
lea edi, [eax*2 + 0x10]
test esi, esi
jle 0x4079c7
add edx, 2
cmp word [edx + 0xe], 0
jbe 0x4079bf
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 0x4079bf
inc edi
add edx, 0x24
sub esi, 1
jne 0x407997
push edi
push 0
push 1
push dword [0x49b58c]
call dword [sym.imp.MMFS2.dll_Ordinal_31]
call fcn.00406c50
push 0
push dword [0x49b58c]
call dword [sym.imp.MMFS2.dll_Ordinal_63]
push dword [0x49b594]
mov edi, dword [sym.imp.USER32.dll_IsWindowVisible]
call edi
test eax, eax
jne 0x407a02
call fcn.00453ba0
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x980]
test eax, eax
je 0x407a21
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_174]
mov dword [esi + 0x980], 0
cmp dword [0x49b5c8], 0
jne 0x407a36
push dword [0x49b58c]
call dword [sym.imp.MMFS2.dll_Ordinal_832]
cmp word [0x49b59e], 3
jne 0x407a7d
mov eax, dword [ebx + 0x1a8]
test eax, eax
jne 0x407a50
mov eax, dword [esi + 0x14]
jmp 0x407a69
lea ecx, [eax]
mov eax, dword [ecx + 0x1a8]
test eax, eax
jne 0x407a50
mov eax, dword [ecx + 0x1d8]
test eax, eax
je 0x407a7d
mov eax, dword [eax + 0x14]
test eax, eax
je 0x407a7d
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x407a7d
push 0
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_742]
mov ecx, esi
call fcn.004081b0
test byte [esi + 0xc], 2
je 0x407a9c
push dword [0x49b590]
call edi
call fcn.00453ba0
call fcn.004540b0
mov edx, dword [0x49b5b8]
mov ebx, dword [edx + 0x80]
mov dword [edx + 0x90c], 0
mov dword [esp + 0x18], ebx
cmp word [ebx], 0
je 0x407b36
movzx ecx, byte [ebx + 3]
lea edi, [ebx + 0x10]
movzx ebx, byte [ebx + 2]
add ebx, ecx
je 0x407b1f
nop
movsx esi, byte [edi + 0xc]
mov eax, dword [edi + 2]
test esi, esi
jle 0x407b15
sar eax, 0x1f
lea ecx, [edi + 0xe]
and eax, 2
add ecx, eax
cmp word [ecx + 2], 0x2b
jne 0x407b0b
movsx eax, word [ecx + 4]
sub eax, 1
je 0x407b04
sub eax, 1
jne 0x407b0b
or dword [edx + 0x90c], 2
jmp 0x407b0b
or dword [edx + 0x90c], 1
movsx eax, word [ecx]
dec esi
add ecx, eax
test esi, esi
jg 0x407ae6
movsx eax, word [edi]
dec ebx
add edi, eax
test ebx, ebx
jg 0x407ad0
mov ebx, dword [esp + 0x18]
movsx eax, word [ebx]
sub ebx, eax
mov dword [esp + 0x18], ebx
cmp word [ebx], 0
jne 0x407ac0
mov esi, dword [esp + 0x10]
call fcn.0044ada0
test byte [esi + 0xc], 0x20
mov dword [esi + 0x960], eax
push eax
je 0x407b67
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 [0x49b58c]
call dword [sym.imp.MMFS2.dll_Ordinal_102]
jmp 0x407b77
push 0x10
push 0x40
push dword [0x49b58c]
call dword [sym.imp.MMFS2.dll_Ordinal_101]
lea ecx, [esp + 0x18]
call fcn.004054e0
mov ecx, dword [esp + 0x18]
sub ecx, dword [0x49be40]
mov eax, dword [esp + 0x1c]
sbb eax, dword [0x49be44]
push 0
push 0xf4240
push eax
push ecx
call fcn.00476fb0
mov ecx, dword [0x49b5b4]
mov dword [ecx + 0x1e0], eax
xor ecx, ecx
cmp dword [esi + 0x60], ecx
setne cl
call fcn.0042aab0
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x407c1d
push 1
push dword [0x49b58c]
call dword [sym.imp.MMFS2.dll_Ordinal_63]
mov edi, dword [esp + 0xc]
mov ecx, dword [edi + 0x1d8]
call fcn.00405eb0
mov eax, dword [edi + 0x3cc]
mov esi, dword [sym.imp.MMFS2.dll_Ordinal_174]
mov dword [edi + 0x1d8], 0
test eax, eax
je 0x407c09
push eax
call esi
mov dword [edi + 0x3cc], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407e84
push eax
call esi
jmp 0x407e84
cmp dword [esi + 0x60], 0
je 0x407c6a
mov esi, dword [0x49b5b8]
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x407c3c
call fcn.0042ade0
mov dword [esi + 0x74], eax
test eax, eax
je 0x407c4c
mov edi, dword [esp + 0xc]
mov dword [edi + 0x1e4], 5
jmp 0x407c78
mov eax, dword [esp + 0x20]
test eax, eax
mov edx, dword [esp + 0x14]
cmovne edx, eax
xor ecx, ecx
call fcn.00407210
mov edi, dword [esp + 0xc]
test eax, eax
jne 0x407c78
jmp 0x407c6e
mov edi, dword [esp + 0xc]
mov dword [edi + 0x1e4], 3
push dword [0x49b594]
call dword [sym.imp.USER32.dll_LockWindowUpdate]
cmp dword [edi + 0x1a8], 0
jne 0x407cee
push dword [0x49b594]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x407ca4
call fcn.00453ba0
jmp 0x407cd4
test byte [0x49b59c], 0x10
je 0x407cb6
cmp dword [0x49b5c8], 0
jne 0x407cc2
test dword [edi + 0x1b0], 0x4000000
je 0x407cc6
push 0
jmp 0x407cc8
push 1
push dword [0x49b594]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x30f
push dword [0x49b590]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x407df9
mov ecx, dword [esp + 0xc]
mov esi, dword [edi + 0x1bc]
mov edi, dword [edi + 0x1c0]
mov eax, dword [ecx + 0x1b0]
test al, 0x20
je 0x407d73
test eax, 0x1000000
jne 0x407d68
push 0xffffffffffffffec
push dword [0x49b594]
mov dword [esp + 0x34], esi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], edi
call esi
push 0xfffffffffffffff0
push dword [0x49b594]
mov edi, eax
call esi
push edi
push 0
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
sub esi, dword [esp + 0x24]
sub edi, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
jmp 0x407d73
and eax, 0xfeffffff
mov dword [ecx + 0x1b0], eax
test byte [ecx + 0x14], 0x10
je 0x407d99
push dword [0x49b58c]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
or ax, 2
movzx eax, ax
push eax
push dword [0x49b58c]
call dword [sym.imp.MMFS2.dll_Ordinal_17]
push dword [0x49b594]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x407dbc
push 0x16
push edi
push esi
push eax
push eax
push eax
push dword [0x49b594]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x1b4], 0
je 0x407df9
test byte [0x49b59c], 0x10
je 0x407ddb
cmp dword [0x49b5c8], 0
jne 0x407de7
test dword [edi + 0x1b0], 0x4000000
je 0x407deb
push 0
jmp 0x407ded
push 1
push dword [0x49b594]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov eax, dword [edi + 0x3cc]
mov esi, dword [sym.imp.MMFS2.dll_Ordinal_174]
test eax, eax
je 0x407e1e
push eax
call esi
mov dword [edi + 0x3cc], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407e29
push eax
call esi
cmp dword [0x49b5c8], 0
je 0x407e84
cmp word [0x49b59e], 3
jne 0x407e84
cmp dword [0x49b598], 0
je 0x407e84
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x407e80
mov edi, dword [sym.imp.GDI32.dll_SelectPalette]
push 0
push dword [0x49b598]
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 edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
push 1
push dword [0x49b58c]
call dword [sym.imp.MMFS2.dll_Ordinal_63]
mov eax, ebx
test ebx, ebx
je 0x407ea2
mov dword [edi + 0x1e4], 6
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045b910
mov esp, ebp
pop ebp
ret