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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4af008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4b49cc]
push ebx
mov ecx, dword [eax + 0x1ec]
push esi
push edi
cmp ecx, dword [eax + 0x1f0]
je 0x428dd5
call fcn.00426fa0
mov ecx, dword [0x4b49cc]
mov dword [ecx + 0x1d8], eax
test eax, eax
jne 0x428dc3
or ebx, 0xffffffff
jmp 0x4295f0
mov ecx, dword [0x4b49cc]
mov eax, dword [ecx + 0x1ec]
mov dword [ecx + 0x1f0], eax
call fcn.00427370
mov ecx, dword [0x4b49cc]
mov eax, dword [ecx + 0xd8]
mov ebx, dword [ecx + 0x1f0]
test eax, eax
je 0x428e29
xor esi, esi
test eax, eax
jle 0x428e29
xor edi, edi
jmp 0x428e00
mov eax, dword [ecx + 0xdc]
mov eax, dword [eax + edi + 0x3c]
test eax, eax
je 0x428e1d
push ebx
push ecx
push 0x4b4998
call eax
mov ecx, dword [0x4b49cc]
inc esi
add edi, 0x4c
cmp esi, dword [ecx + 0xd8]
jl 0x428e00
mov eax, dword [0x4b49d0]
xor ebx, ebx
mov dword [eax + 0x20], 0
mov eax, dword [0x4b49d0]
mov dword [ebp - 0x28], ebx
mov dword [eax + 0x1c], 0
mov eax, dword [0x4b49d0]
mov dword [eax + 0x28], 0
mov eax, dword [0x4b49d0]
mov dword [eax + 0x24], 0
mov eax, dword [0x4b49d0]
mov dword [eax + 0x78], 0
mov eax, dword [0x4b49d0]
mov dword [eax + 0x74], 0
mov ecx, dword [0x4b49cc]
mov edx, dword [0x4b49d0]
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ecx + 0x1a8], eax
je 0x428ea9
test dword [ecx + 0x1b0], 0x200000
je 0x428ea9
mov esi, dword [ecx + 0x1bc]
mov edi, dword [ecx + 0x1c0]
jmp 0x428ed7
test dword [edx + 0xc], 0x100
je 0x428ec0
mov esi, dword [0x4b4b6c]
mov edi, dword [0x4b4b68]
jmp 0x428ed7
movsx eax, word [ecx + 0x1c]
mov esi, dword [edx]
mov edi, dword [edx + 4]
cmp eax, esi
cmovl esi, eax
movsx eax, word [ecx + 0x1e]
cmp eax, edi
cmovl edi, eax
mov dword [edx + 0x958], esi
mov eax, dword [0x4b49d0]
mov dword [eax + 0x95c], edi
mov ecx, dword [0x4b49d0]
test dword [ecx + 0xc], 0x800
jne 0x429035
push 0
push dword [0x4b49a4]
call dword [sym.imp.MMFS2.dll_Ordinal_34]
mov ecx, dword [0x4b49cc]
mov ebx, eax
mov eax, dword [ecx + 0x38c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
call dword [sym.imp.MMFS2.dll_Ordinal_173]
mov ecx, dword [0x4b49d0]
mov dword [ecx + 0x18], eax
mov ecx, dword [0x4b49cc]
push dword [ecx + 0x1cc]
mov ecx, dword [0x4b49d0]
push edi
mov ecx, dword [ecx + 0x18]
push esi
call dword [sym.imp.MMFS2.dll_Ordinal_372]
push dword [0x4b49cc]
mov ecx, dword [0x4b49d0]
push 0x42a250
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_982]
mov eax, dword [0x4b49cc]
cmp byte [eax + 0x3b8], 0
je 0x428f8d
push ecx
mov ecx, dword [0x4b49d0]
mov dword [esp], 0x3f800000
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_1017]
mov eax, dword [0x4b49cc]
cmp dword [0x4b4a9c], 0
je 0x428fbe
cmp dword [eax + 0x1a8], 0
jne 0x428fbe
movzx eax, byte [eax + 0x7d]
mov ecx, dword [0x4b49d0]
shl eax, 4
mov ecx, dword [ecx + 0x18]
or eax, 5
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_876]
mov eax, dword [0x4b49cc]
mov eax, dword [eax + 0x23c]
test eax, eax
je 0x428fd8
mov ecx, dword [0x4b49d0]
push eax
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_361]
mov eax, dword [0x4b49d0]
push dword [eax + 0x18]
push dword [0x4b49a4]
call dword [sym.imp.MMFS2.dll_Ordinal_32]
mov ecx, dword [0x4b49d0]
test byte [ecx + 0xc], 4
je 0x42901a
test ebx, ebx
je 0x42901a
mov eax, dword [ebp - 0x24]
push dword [ecx + 0x18]
test eax, eax
je 0x429010
mov ecx, eax
call dword [sym.imp.MMFS2.dll_Ordinal_342]
jmp 0x42902f
mov ecx, ebx
call dword [sym.imp.MMFS2.dll_Ordinal_342]
jmp 0x42902f
test byte [0x4b49b4], 0x10
jne 0x429035
push dword [ecx + 8]
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_445]
mov ecx, dword [0x4b49d0]
movsx eax, word [ecx + 0x8f0]
mov edi, dword [ecx + 0x44]
mov edx, dword [ecx + 0x50]
lea esi, [eax*2 + 0x10]
test edi, edi
jle 0x429081
mov ebx, dword [0x4b49cc]
add edx, 2
cmp word [edx + 0xe], 0
jbe 0x42907b
movzx ecx, word [edx]
mov eax, dword [ebx + 0x198]
movzx ecx, word [eax + ecx*2]
mov eax, dword [ebx + 0x19c]
mov eax, dword [eax + ecx*4]
cmp word [eax + 2], 2
jae 0x42907b
inc esi
add edx, 0x24
dec edi
jne 0x429056
push esi
push 0
push 1
push dword [0x4b49a4]
call dword [sym.imp.MMFS2.dll_Ordinal_31]
call fcn.00426cd0
mov eax, dword [0x4b49cc]
cmp dword [eax + 0x1fc], 0
jne 0x4290cb
mov esi, dword [sym.imp.USER32.dll_GetInputState]
call esi
test eax, eax
je 0x4290cb
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call edi
call esi
test eax, eax
jne 0x4290b7
push 0
push dword [0x4b49a4]
call dword [sym.imp.MMFS2.dll_Ordinal_63]
push dword [0x4b49a8]
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
call ebx
test eax, eax
jne 0x42911c
mov eax, dword [0x4b49cc]
cmp dword [eax + 0x1a8], 0
jne 0x42911c
call fcn.00442010
call fcn.00441ee0
mov eax, dword [0x4b49cc]
movzx eax, word [eax + 0x14]
test eax, 0x100
je 0x42911c
test al, al
js 0x42911c
call fcn.00451370
push dword [0x4b49ac]
call ebx
test eax, eax
jne 0x42912d
call fcn.00441ad0
mov esi, dword [0x4b49d0]
test esi, esi
je 0x429158
mov eax, dword [esi + 0x980]
test eax, eax
je 0x429158
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_174]
mov dword [esi + 0x980], 0
mov esi, dword [0x4b49d0]
cmp dword [0x4b49e0], 0
jne 0x429173
push dword [0x4b49a4]
call dword [sym.imp.MMFS2.dll_Ordinal_832]
mov esi, dword [0x4b49d0]
cmp word [0x4b49b6], 3
jne 0x4291d3
mov ecx, dword [0x4b49cc]
cmp dword [ecx + 0x1a8], 0
jne 0x429191
mov eax, dword [esi + 0x14]
jmp 0x4291b9
mov eax, dword [ecx + 0x1a8]
test eax, eax
je 0x4291ac
jmp 0x4291a0
mov ecx, eax
mov eax, dword [ecx + 0x1a8]
test eax, eax
jne 0x4291a0
mov eax, dword [ecx + 0x1d8]
test eax, eax
je 0x4291d3
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4291d3
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4291d3
push 0
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_742]
mov esi, dword [0x4b49d0]
mov ecx, esi
call fcn.004298f0
mov eax, dword [0x4b49d0]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test byte [eax + 0xc], 2
mov esi, 0x400
je 0x42922f
push dword [0x4b49a8]
call ebx
test eax, eax
jne 0x429225
mov eax, dword [0x4b49cc]
cmp dword [eax + 0x1a8], 0
jne 0x429225
mov ecx, 0x200
test word [eax + 0x14], cx
je 0x429225
test word [eax + 0x16], si
jne 0x429225
push 3
push dword [0x4b49a8]
call edi
call fcn.00441ad0
call fcn.00442310
call fcn.00445610
call fcn.00435fa0
mov ecx, dword [0x4b49d0]
mov dword [ecx + 0x960], eax
mov ecx, dword [0x4b49d0]
test byte [ecx + 0xc], 0x20
push dword [ecx + 0x960]
je 0x429276
mov eax, dword [ecx + 4]
add eax, 0x10
push eax
mov eax, dword [ecx]
add eax, 0x40
push eax
push 0xfffffffffffffff0
push 0xffffffffffffffc0
push dword [0x4b49a4]
call dword [sym.imp.MMFS2.dll_Ordinal_102]
jmp 0x429286
push 0x10
push 0x40
push dword [0x4b49a4]
call dword [sym.imp.MMFS2.dll_Ordinal_101]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x4b49cc]
mov dword [ecx + 0x1e0], eax
mov eax, dword [0x4b49d0]
xor ecx, ecx
cmp dword [eax + 0x60], ecx
setne cl
call fcn.004460c0
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x42931b
push 1
push dword [0x4b49a4]
call dword [sym.imp.MMFS2.dll_Ordinal_63]
mov ecx, dword [0x4b49cc]
mov ecx, dword [ecx + 0x1d8]
call fcn.004262f0
mov eax, dword [0x4b49cc]
mov esi, dword [sym.imp.MMFS2.dll_Ordinal_174]
mov dword [eax + 0x1d8], 0
mov eax, dword [0x4b49cc]
mov eax, dword [eax + 0x38c]
test eax, eax
je 0x429308
push eax
call esi
mov eax, dword [0x4b49cc]
mov dword [eax + 0x38c], 0
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x4295f0
push edx
call esi
jmp 0x4295f0
mov eax, dword [0x4b49d0]
cmp dword [eax + 0x60], 0
je 0x42936c
cmp dword [eax + 0x74], 0
jne 0x429345
call fcn.004462e0
mov ecx, dword [0x4b49d0]
mov dword [ecx + 0x74], eax
mov eax, dword [0x4b49d0]
cmp dword [eax + 0x74], 0
je 0x429356
mov eax, dword [0x4b49cc]
mov dword [eax + 0x1e4], 5
jmp 0x42937b
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
test eax, eax
cmovne edx, eax
xor ecx, ecx
call fcn.004287e0
test eax, eax
jne 0x42937b
mov eax, dword [0x4b49cc]
mov dword [eax + 0x1e4], 3
push dword [0x4b49ac]
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov eax, dword [0x4b49cc]
cmp dword [eax + 0x1a8], 0
jne 0x42945c
push dword [0x4b49a8]
mov esi, dword [sym.imp.USER32.dll_IsWindowVisible]
call esi
test eax, eax
jne 0x4293fe
test byte [0x4b49b4], 0x10
je 0x4293bc
cmp dword [0x4b49e0], eax
jne 0x4293cd
mov eax, dword [0x4b49cc]
test dword [eax + 0x1b0], 0x4000000
je 0x4293d1
push 0
jmp 0x4293d3
push 1
push dword [0x4b49ac]
call edi
mov eax, dword [0x4b49cc]
mov ecx, 0x400
test word [eax + 0x16], cx
jne 0x429442
movzx eax, byte [eax + 0x15]
and eax, 2
or eax, 1
push eax
push dword [0x4b49a8]
jmp 0x429440
push dword [0x4b49ac]
call esi
test eax, eax
je 0x429411
call fcn.00441ad0
jmp 0x429442
test byte [0x4b49b4], 0x10
je 0x429423
cmp dword [0x4b49e0], 0
jne 0x429434
mov eax, dword [0x4b49cc]
test dword [eax + 0x1b0], 0x4000000
je 0x429438
push 0
jmp 0x42943a
push 1
push dword [0x4b49ac]
call edi
push 0
push 0
push 0x30f
push dword [0x4b49a8]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x429561
mov ecx, dword [eax + 0x1b0]
mov edx, dword [eax + 0x1c0]
mov esi, dword [eax + 0x1bc]
mov dword [ebp - 0x24], edx
test cl, 0x20
je 0x4294dc
test ecx, 0x1000000
jne 0x4294cb
push 0xffffffffffffffec
push dword [0x4b49ac]
mov dword [ebp - 0xc], esi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], edx
call esi
push eax
push 0
push 0xfffffffffffffff0
push dword [0x4b49ac]
call esi
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
sub esi, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
jmp 0x4294d7
and ecx, 0xfeffffff
mov dword [eax + 0x1b0], ecx
mov eax, dword [0x4b49cc]
test byte [eax + 0x14], 0x10
je 0x429502
push dword [0x4b49a4]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
or ax, 2
movzx eax, ax
push eax
push dword [0x4b49a4]
call dword [sym.imp.MMFS2.dll_Ordinal_17]
push dword [0x4b49ac]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x429527
push 0x16
push dword [ebp - 0x24]
push esi
push eax
push eax
push eax
push dword [0x4b49ac]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x4b49cc]
cmp dword [eax + 0x1b4], 0
je 0x429561
test byte [0x4b49b4], 0x10
je 0x429547
cmp dword [0x4b49e0], 0
jne 0x429553
test dword [eax + 0x1b0], 0x4000000
je 0x429557
push 0
jmp 0x429559
push 1
push dword [0x4b49ac]
call edi
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov eax, dword [0x4b49cc]
mov esi, dword [sym.imp.MMFS2.dll_Ordinal_174]
mov eax, dword [eax + 0x38c]
test eax, eax
je 0x429590
push eax
call esi
mov eax, dword [0x4b49cc]
mov dword [eax + 0x38c], 0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42959a
push eax
call esi
cmp dword [0x4b49e0], 0
je 0x4295f0
cmp word [0x4b49b6], 3
jne 0x4295f0
cmp dword [0x4b49b0], 0
je 0x4295f0
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x4295ed
mov edi, dword [sym.imp.GDI32.dll_SelectPalette]
push 0
push dword [0x4b49b0]
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 ebx, dword [ebp - 0x2c]
push 1
push dword [0x4b49a4]
call dword [sym.imp.MMFS2.dll_Ordinal_63]
test ebx, ebx
je 0x429611
mov eax, dword [0x4b49cc]
mov dword [eax + 0x1e4], 6
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0046d696
mov esp, ebp
pop ebp
ret