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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48ad0b
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x4ae008]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x4ae008]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov dword [esp + 0x54], ecx
push 0
push dword [0x4b39a4]
call dword [sym.imp.MMFS2.dll_Ordinal_34]
mov edi, eax
mov dword [esp + 0x58], edi
test edi, edi
jne 0x456423
xor eax, eax
jmp 0x456f1b
mov cx, word [0x4b39b4]
xor ebx, ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x70], ebx
mov dword [esp + 0x68], ebx
test cl, 0x10
je 0x45654e
mov eax, dword [0x4b39d0]
mov byte [esp + 0x13], 1
mov ebx, dword [eax + 0x980]
mov dword [esp + 0x3c], ebx
test ebx, ebx
je 0x45641c
mov eax, dword [0x4b39cc]
mov esi, dword [sym.imp.MMFS2.dll_Ordinal_585]
cmp dword [eax + 0x1a8], 0
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_520]
jne 0x4564bd
cmp dword [0x4b39e0], 0
je 0x4564bd
mov ecx, ebx
call esi
mov ecx, dword [0x4b3b6c]
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, ebx
mov dword [esp + 0x70], eax
call edi
mov ecx, dword [0x4b3b68]
sub ecx, eax
mov eax, ecx
mov cx, word [0x4b39b4]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x68], eax
test cl, 0x80
mov ecx, 0
setne cl
add ecx, 5
push ecx
push 5
mov ecx, ebx
call dword [sym.imp.MMFS2.dll_Ordinal_487]
push eax
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_172]
cmp dword [esp + 0x88], 0
je 0x45641c
push 0x10
call fcn.0046ecaf
add esp, 4
mov dword [esp + 0x74], eax
mov dword [esp + 0xd8], 0
test eax, eax
je 0x456520
mov ecx, eax
call dword [sym.imp.MMFS2.dll_Ordinal_264]
mov ebx, eax
mov dword [esp + 0x38], eax
jmp 0x456526
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xd8], 0xffffffff
push dword [esp + 0x88]
call edi
mov ecx, dword [esp + 0x40]
push eax
call esi
push eax
mov ecx, ebx
call dword [sym.imp.MMFS2.dll_Ordinal_372]
mov edi, dword [esp + 0x54]
push 1
mov eax, dword [edi + 0x44]
movzx ebx, word [eax + 0xc]
add ebx, eax
mov dword [esp + 0x78], ebx
mov eax, dword [ebx + 0xc]
shl eax, 4
push eax
call fcn.0046dc54
add esp, 8
mov dword [esp + 0x5c], eax
test eax, eax
je 0x45641c
push dword [0x4b39a0]
call dword [sym.imp.MMFS2.dll_Ordinal_27]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x456f3f
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x4c]
sub eax, dword [ecx + 0xb0]
mov dword [esp + 0x7c], 1
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x54]
sub eax, dword [ecx + 0xb4]
mov dword [esp + 0x90], 1
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + ebx + 4]
mov dword [esp + 0x98], ecx
movzx ecx, word [eax + ebx + 2]
movzx eax, word [eax + ebx]
push eax
mov eax, dword [0x4b39cc]
and ecx, 0x200
push dword [eax + 0x1c4]
mov dword [esp + 0x9c], ecx
call dword [sym.imp.MMFS2.dll_Ordinal_39]
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x45661b
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x90], 0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x60]
push eax
push 1
push 0x492158
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
mov ecx, dword [esp + 0x60]
mov edi, 1
lea eax, [ecx + ecx*2]
cdq
sub eax, edx
sar eax, 1
mov edx, 4
mov ecx, 0x40
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x18], ecx
cmp dword [ebx + 0xc], edi
jbe 0x4566ef
lea esi, [ebx + 0x14]
lea ecx, [ecx]
mov eax, dword [esi]
add eax, 8
add eax, ebx
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4566da
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [esp + 0x30]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x60]
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x18]
add eax, 4
cmp ecx, eax
cmovle ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], ecx
lea eax, [eax + eax*2]
cdq
sub eax, edx
mov edx, dword [esp + 0x44]
sar eax, 1
cmp edx, eax
cmovle edx, eax
mov dword [esp + 0x44], edx
jmp 0x4566e2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
inc edi
add esi, 4
cmp edi, dword [ebx + 0xc]
jb 0x456670
mov esi, dword [esp + 0x14]
mov eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov edx, 2
cmp eax, edx
cmovg edx, eax
mov eax, dword [esp + 0x50]
add eax, 2
mov dword [esp + 0x8c], edx
lea eax, [ecx + eax*2]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x10]
add eax, ebx
mov dword [esp + 0x2c], eax
movzx eax, word [eax]
push eax
mov eax, dword [0x4b39cc]
push dword [eax + 0x1c4]
call dword [sym.imp.MMFS2.dll_Ordinal_39]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x456753
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x18], eax
mov dword [esp + 0x7c], 0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x60]
push eax
push 1
push 0x492158
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x2c]
lea eax, [eax + eax*2]
cdq
sub eax, edx
mov edi, eax
lea eax, [esp + 0x60]
push eax
add esi, 8
push esi
sar edi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
lea eax, [eax + eax*2]
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
add ecx, 4
mov dword [esp + 0x78], eax
lea eax, [ecx + edi*2]
mov ecx, dword [0x4b39cc]
cmp edx, eax
movsx edi, word [ecx + 0x1c]
cmovle edx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], edx
cmp edx, edi
jle 0x4567ee
sub edx, edi
mov eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
add edx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edi
jmp 0x456817
mov ecx, dword [0x4b39d0]
mov ecx, dword [ecx]
cmp edx, ecx
jle 0x456813
sub edx, ecx
mov eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
add edx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
jmp 0x456817
mov edx, dword [esp + 0x1c]
mov ecx, dword [0x4b39d0]
mov esi, dword [esp + 0x8c]
mov eax, dword [ecx]
cmp edi, eax
cmovl eax, edi
mov edi, dword [esp + 0x54]
xor ecx, ecx
cmp dword [esp + 0x2c], eax
mov eax, 1
cmovg eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x44]
add eax, esi
mov dword [esp + 0x80], eax
mov dword [edi + 0x212], ecx
mov eax, dword [ebx + 0xc]
dec eax
imul eax, dword [esp + 0x80]
add eax, dword [esp + 0x78]
add esi, 5
add eax, esi
mov esi, dword [esp + 0x14]
mov dword [edi + 0x216], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xbc], eax
mov eax, dword [edi + 0x216]
add eax, dword [esp + 0x34]
add ecx, edx
cmp byte [esp + 0x13], 0
mov dword [esp + 0xb8], edx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], eax
jne 0x4568c7
push eax
push ecx
push dword [esp + 0x3c]
lea eax, [edi + 0x98]
push edx
push eax
push dword [0x4b39a4]
call dword [sym.imp.MMFS2.dll_Ordinal_65]
push dword [esp + 0x20]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push dword [0x4b39a0]
call dword [sym.imp.MMFS2.dll_Ordinal_29]
xor edi, edi
mov cl, 1
xor esi, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], edi
mov byte [esp + 0x12], cl
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x30], esi
lea ecx, [ecx]
test cl, cl
je 0x456c68
mov edi, dword [esp + 0x58]
xor al, al
mov byte [esp + 0x12], al
cmp byte [esp + 0x13], al
je 0x456994
push 0
push 0
mov ecx, edi
call dword [sym.imp.MMFS2.dll_Ordinal_341]
mov esi, dword [esp + 0x38]
push 0
push 0
mov ecx, esi
call dword [sym.imp.MMFS2.dll_Ordinal_341]
mov eax, dword [0x4b39d0]
xor edx, edx
mov ecx, dword [eax + 0x974]
test ecx, ecx
je 0x456971
cmp dword [ecx], 0xd
mov edx, dword [ecx + 4]
jne 0x456971
cmp dword [eax + 0x978], 0
lea esi, [eax + 0x978]
jne 0x45696b
add ecx, 8
call fcn.00434d90
mov dword [esi], eax
mov eax, dword [0x4b39d0]
mov edx, dword [esi]
mov esi, dword [esp + 0x38]
mov eax, dword [eax + 0x974]
xor ecx, ecx
test eax, eax
je 0x45697f
mov ecx, dword [eax]
push 0
push edx
push ecx
mov ecx, dword [esp + 0x48]
push 0
push 0
push 0
push esi
call dword [sym.imp.MMFS2.dll_Ordinal_344]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x1c]
mov eax, dword [ecx + 0x212]
mov edx, dword [esp + 0x34]
add eax, esi
mov dword [esp + 0xc0], eax
mov eax, dword [ecx + 0x216]
add eax, edx
mov dword [esp + 0xc4], eax
lea eax, [esp + 0xb8]
push eax
push dword [0x4b39a4]
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], edx
call dword [sym.imp.MMFS2.dll_Ordinal_50]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xc4]
push 0xc0c0c0
sub eax, ecx
push eax
mov eax, dword [esp + 0xc8]
sub eax, esi
push eax
push ecx
push esi
mov ecx, edi
call dword [sym.imp.MMFS2.dll_Ordinal_443]
mov ecx, dword [0x4b39a4]
push 0
lea edx, [esp + 0xbc]
call fcn.00456140
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0x7c]
sub dword [esp + 0xc4], 2
add ecx, 2
add eax, ecx
add edx, 2
mov dword [esp + 0xc8], eax
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], ecx
mov esi, dword [ebx + 0x10]
add esi, ebx
mov eax, 0x200
add esp, 4
test word [esi + 2], ax
je 0x456ab8
mov eax, dword [esp + 0x84]
movzx eax, ax
or eax, 0x24
push eax
push 0xffffff
lea eax, [esi + 8]
push eax
lea eax, [esp + 0xc4]
push eax
push dword [esp + 0x28]
add edx, 2
push dword [0x4b39a4]
add ecx, 2
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
call dword [sym.imp.MMFS2.dll_Ordinal_1081]
sub dword [esp + 0xb8], 2
sub dword [esp + 0xbc], 2
mov eax, dword [esp + 0x84]
movzx eax, ax
or eax, 0x24
push eax
push dword [esi + 4]
lea eax, [esi + 8]
push eax
lea eax, [esp + 0xc4]
push eax
push dword [esp + 0x28]
push dword [0x4b39a4]
call dword [sym.imp.MMFS2.dll_Ordinal_1081]
mov eax, dword [esp + 0xc4]
mov esi, dword [sym.imp.MMFS2.dll_Ordinal_611]
push 0x808080
push 1
push eax
push dword [esp + 0xcc]
mov ecx, edi
push eax
push dword [esp + 0xcc]
mov dword [esp + 0xd4], eax
call esi
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xbc]
push 0xffffff
push 1
inc eax
push eax
push dword [esp + 0xcc]
inc ecx
push ecx
push dword [esp + 0xcc]
mov dword [esp + 0xd4], ecx
mov ecx, edi
mov dword [esp + 0xdc], eax
call esi
cmp dword [ebx + 0xc], 1
mov dword [esp + 0x40], 1
jbe 0x456c21
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x5c]
add ecx, 0xfffffffe
add eax, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x8c]
lea ecx, [ebx + 0x14]
add edi, 3
add esi, 4
mov dword [esp + 0x20], ecx
add edi, eax
mov ecx, dword [ecx]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
add ecx, ebx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x50]
add ecx, 2
add eax, ecx
mov dword [esi - 4], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x44]
add eax, edi
mov dword [esi + 8], eax
xor eax, eax
cmp dword [esp + 0x40], edx
lea edx, [esi - 4]
sete al
mov dword [esi], edi
push eax
push dword [esp + 0x70]
push dword [esp + 0x9c]
push dword [esp + 0xa4]
call fcn.004562c0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x84]
add edi, dword [esp + 0x90]
inc eax
add ecx, 4
add esp, 0x10
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], ecx
lea esi, [esi + 0x10]
cmp eax, dword [ebx + 0xc]
jb 0x456b96
mov edi, dword [esp + 0x58]
cmp byte [esp + 0x13], 0
je 0x456c58
mov ecx, dword [esp + 0x38]
call dword [sym.imp.MMFS2.dll_Ordinal_417]
mov ecx, dword [esp + 0x38]
push 0
push 0
push 0
push 0
push dword [esp + 0x78]
push dword [esp + 0x84]
push edi
call dword [sym.imp.MMFS2.dll_Ordinal_344]
mov ecx, edi
call dword [sym.imp.MMFS2.dll_Ordinal_417]
push dword [0x4b39a4]
call dword [sym.imp.MMFS2.dll_Ordinal_62]
mov edi, dword [esp + 0x14]
mov edx, 7
lea ecx, [esp + 0x9c]
call fcn.00402bf0
mov eax, dword [esp + 0xa0]
mov esi, dword [esp + 0xa8]
sub eax, 0x111
je 0x456d56
sub eax, 0xf0
je 0x456d85
mov cl, byte [esp + 0x12]
dec eax
jne 0x456900
test edi, edi
je 0x456900
call dword [sym.imp.USER32.dll_ReleaseCapture]
movsx edx, si
shr esi, 0x10
movsx eax, si
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x5c]
mov edi, 1
mov cl, 1
mov dword [esp + 0x28], 0xffffffff
mov byte [esp + 0x12], cl
mov dword [esp + 0x4c], edx
mov dword [esp + 0x20], eax
cmp dword [ebx + 0xc], edi
jbe 0x456d45
lea esi, [ebx + 0x14]
lea ebx, [ebx]
push dword [esp + 0x48]
mov ecx, dword [esi]
push edx
add ecx, ebx
push eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x456d35
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x4c]
inc edi
add eax, 0x10
add esi, 4
mov dword [esp + 0x20], eax
cmp edi, dword [ebx + 0xc]
jb 0x456cf0
mov cl, byte [esp + 0x12]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x30], 0
jmp 0x456900
mov ecx, dword [esp + 0x30]
cmp edi, ecx
je 0x456dfb
mov cl, byte [esp + 0x12]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x30], 0
jmp 0x456900
mov ecx, dword [esp + 0xa4]
movzx eax, cx
add eax, 0xfffffc10
cmp eax, 1
ja 0x456d85
push esi
push ecx
push 0x111
push dword [0x4b39a8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esp + 0x2c], 1
mov edi, dword [esp + 0x5c]
movsx eax, si
shr esi, 0x10
movsx ecx, si
mov esi, 1
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
cmp dword [ebx + 0xc], esi
jbe 0x456dc2
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x456dd6
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
inc esi
add edi, 0x10
cmp esi, dword [ebx + 0xc]
jb 0x456da4
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x2c], 0
jne 0x456e14
mov cl, byte [esp + 0x12]
jmp 0x456900
push dword [0x4b39ac]
mov al, 1
mov dword [esp + 0x2c], esi
mov byte [esp + 0x16], al
call dword [sym.imp.USER32.dll_SetCapture]
mov edi, 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], edi
jmp 0x456dc6
mov eax, dword [esp + 0x40]
mov edx, 0x100
test word [eax + 2], dx
je 0x456e14
or ecx, 0x8000
mov dword [esp + 0x30], ecx
cmp byte [esp + 0x13], 0
jne 0x456e3b
mov esi, dword [esp + 0x54]
add esi, 0x98
push esi
push dword [0x4b39a4]
call dword [sym.imp.MMFS2.dll_Ordinal_64]
push esi
call dword [sym.imp.MMFS2.dll_Ordinal_66]
jmp 0x456eba
mov edi, dword [esp + 0x58]
push 0
push 0
mov ecx, edi
call dword [sym.imp.MMFS2.dll_Ordinal_341]
mov edx, dword [0x4b39d0]
xor eax, eax
mov ecx, dword [edx + 0x974]
test ecx, ecx
je 0x456e88
cmp dword [ecx], 0xd
mov eax, dword [ecx + 4]
jne 0x456e88
cmp dword [edx + 0x978], 0
lea esi, [edx + 0x978]
jne 0x456e86
add ecx, 8
mov edx, eax
call fcn.00434d90
mov dword [esi], eax
mov edx, dword [0x4b39d0]
mov eax, dword [esi]
mov edx, dword [edx + 0x974]
xor ecx, ecx
test edx, edx
je 0x456e96
mov ecx, dword [edx]
push 0
push eax
push ecx
mov ecx, dword [esp + 0x48]
push 0
push dword [esp + 0x78]
push dword [esp + 0x84]
push edi
call dword [sym.imp.MMFS2.dll_Ordinal_344]
mov ecx, edi
call dword [sym.imp.MMFS2.dll_Ordinal_417]
push dword [0x4b39a4]
call dword [sym.imp.MMFS2.dll_Ordinal_62]
cmp dword [esp + 0x90], 0
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x456edc
push dword [esp + 0x6c]
call esi
cmp dword [esp + 0x7c], 0
je 0x456ee9
push dword [esp + 0x18]
call esi
mov esi, dword [esp + 0x30]
cmp byte [esp + 0x13], 0
je 0x456f0d
mov ebx, dword [esp + 0x38]
test ebx, ebx
je 0x456f0d
mov ecx, ebx
call dword [sym.imp.MMFS2.dll_Ordinal_286]
push ebx
call fcn.0046ecfe
add esp, 4
push dword [esp + 0x5c]
call fcn.0046d497
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.0046d3f6
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x74]
jmp 0x456eed