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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x4a8014]
xor eax, esp
mov dword [esp + 0x3c], eax
mov edx, dword [0x4ab3a4]
push esi
push edi
mov ecx, dword [edx + 0x1ec]
cmp ecx, dword [edx + 0x1f0]
je 0x42cb6f
call fcn.0042ad30
mov ecx, dword [0x4ab3a4]
mov dword [ecx + 0x1d8], eax
test eax, eax
jne 0x42cb57
or esi, 0xffffffff
jmp 0x42d746
mov ecx, dword [0x4ab3a4]
mov eax, dword [ecx + 0x1ec]
mov dword [ecx + 0x1f0], eax
mov edx, dword [0x4ab3a4]
cmp dword [edx + 0x1a8], 0
je 0x42cb9a
mov eax, dword [0x4ab3a8]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x42cc4b
push eax
push dword [0x4ab384]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x42cc45
mov ecx, dword [0x4ab3a8]
test byte [ecx + 0xc], 1
je 0x42cc31
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x42cc31
cmp word [ecx], 0
je 0x42cc31
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42cbc0
mov edx, dword [edx + 0x80]
sub ecx, esi
sar ecx, 1
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42cbe0
sub edx, esi
lea eax, [ecx + 0xa]
sar edx, 1
add eax, edx
push 2
push eax
call fcn.0047122f
mov ecx, dword [0x4ab3a8]
mov esi, eax
push dword [ecx + 0x10]
mov ecx, dword [0x4ab3a4]
push dword [ecx + 0x80]
push str._s____s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, esi
call fcn.0042b140
push esi
call fcn.00471245
add esp, 0x1c
jmp 0x42cc45
mov ecx, dword [edx + 0x80]
test ecx, ecx
jne 0x42cc40
mov ecx, str.Untitled
call fcn.0042b140
mov edx, dword [0x4ab3a4]
mov eax, dword [edx + 0xd8]
mov ecx, dword [edx + 0x1f0]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x42cc9d
xor esi, esi
test eax, eax
jle 0x42cc9d
xor edi, edi
nop word [eax + eax]
mov eax, dword [edx + 0xdc]
mov eax, dword [eax + edi + 0x3c]
test eax, eax
je 0x42cc91
push ecx
push edx
push 0x4ab370
call eax
mov edx, dword [0x4ab3a4]
mov ecx, dword [esp + 0x20]
inc esi
add edi, 0x4c
cmp esi, dword [edx + 0xd8]
jl 0x42cc70
mov eax, dword [0x4ab3a8]
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], 0
mov dword [eax + 0x20], 0
mov eax, dword [0x4ab3a8]
mov dword [eax + 0x1c], 0
mov eax, dword [0x4ab3a8]
mov dword [eax + 0x28], 0
mov eax, dword [0x4ab3a8]
mov dword [eax + 0x24], 0
mov eax, dword [0x4ab3a8]
mov dword [eax + 0x78], 0
mov eax, dword [0x4ab3a8]
mov dword [eax + 0x74], 0
mov ecx, dword [0x4ab3a4]
cmp dword [ecx + 0x1a8], edx
mov edx, dword [0x4ab3a8]
je 0x42cd21
test dword [ecx + 0x1b0], 0x200000
je 0x42cd21
mov esi, dword [ecx + 0x1bc]
mov edi, dword [ecx + 0x1c0]
jmp 0x42cd4e
test dword [edx + 0xc], 0x100
je 0x42cd38
mov esi, dword [0x4ab538]
mov edi, dword [0x4ab534]
jmp 0x42cd4e
movsx esi, word [ecx + 0x1c]
cmp esi, dword [edx]
movsx edi, word [ecx + 0x1e]
cmovge esi, dword [edx]
mov eax, dword [edx + 4]
cmp edi, eax
jl 0x42cd4e
mov edi, eax
mov dword [edx + 0x958], esi
mov eax, dword [0x4ab3a8]
mov dword [eax + 0x95c], edi
mov ecx, dword [0x4ab3a8]
test dword [ecx + 0xc], 0x800
jne 0x42cf0f
push 0
push dword [0x4ab37c]
call dword [sym.imp.MMFS2.dll_Ordinal_34]
mov ecx, dword [0x4ab3a4]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x3cc]
mov dword [esp + 0x18], eax
call dword [sym.imp.MMFS2.dll_Ordinal_173]
mov ecx, dword [0x4ab3a8]
mov dword [ecx + 0x18], eax
mov ecx, dword [0x4ab3a4]
push dword [ecx + 0x1cc]
mov ecx, dword [0x4ab3a8]
push edi
push esi
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_372]
mov ecx, dword [0x4ab3a8]
push dword [0x4ab3a4]
push 0x42e470
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_982]
test byte [0x4ab38c], 0x40
je 0x42ce38
mov eax, dword [0x4ab3a8]
mov edx, dword [eax + 0x18]
mov eax, dword [0x4ab3a4]
test eax, eax
je 0x42ce0d
mov ecx, dword [eax + 0x3bc]
test ecx, ecx
je 0x42ce0d
test dword [ecx], 0x40000000
je 0x42ce0d
mov ecx, 1
jmp 0x42ce0f
xor ecx, ecx
test eax, eax
je 0x42ce2c
mov eax, dword [eax + 0x3bc]
test eax, eax
je 0x42ce2c
test dword [eax], 0x40000000
je 0x42ce2c
mov eax, 1
jmp 0x42ce2e
xor eax, eax
push ecx
push eax
mov ecx, edx
call dword [sym.imp.MMFS2.dll_Ordinal_1106]
mov eax, dword [0x4ab3a4]
cmp byte [eax + 0x3f8], 0
je 0x42ce62
push ecx
mov ecx, dword [0x4ab3a8]
mov dword [esp], 0x3f800000
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_1017]
mov eax, dword [0x4ab3a4]
cmp dword [0x4ab474], 0
je 0x42ce93
cmp dword [eax + 0x1a8], 0
jne 0x42ce93
movzx eax, byte [eax + 0x7d]
mov ecx, dword [0x4ab3a8]
shl eax, 4
or eax, 5
push eax
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_876]
mov eax, dword [0x4ab3a4]
mov eax, dword [eax + 0x23c]
test eax, eax
je 0x42cead
mov ecx, dword [0x4ab3a8]
push eax
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_361]
mov eax, dword [0x4ab3a8]
push dword [eax + 0x18]
push dword [0x4ab37c]
call dword [sym.imp.MMFS2.dll_Ordinal_32]
mov ecx, dword [0x4ab3a8]
test byte [ecx + 0xc], 4
je 0x42cef4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42cef4
mov edx, dword [esp + 0x18]
push dword [ecx + 0x18]
test edx, edx
je 0x42ceea
mov ecx, edx
call dword [sym.imp.MMFS2.dll_Ordinal_342]
jmp 0x42cf09
mov ecx, eax
call dword [sym.imp.MMFS2.dll_Ordinal_342]
jmp 0x42cf09
test byte [0x4ab38c], 0x10
jne 0x42cf0f
push dword [ecx + 8]
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_445]
mov ecx, dword [0x4ab3a8]
movsx eax, word [ecx + 0x8f0]
mov edi, dword [ecx + 0x44]
mov edx, dword [ecx + 0x50]
lea esi, [eax*2 + 0x10]
test edi, edi
jle 0x42cf68
add edx, 2
nop word [eax + eax]
cmp word [edx + 0xe], 0
jbe 0x42cf60
mov eax, dword [0x4ab3a4]
movzx ecx, word [edx]
mov eax, dword [eax + 0x198]
movzx eax, word [eax + ecx*2]
imul ecx, eax, 0x2c
mov eax, dword [0x4ab3a4]
mov eax, dword [eax + 0x400]
cmp word [ecx + eax + 2], 2
jae 0x42cf60
inc esi
add edx, 0x24
sub edi, 1
jne 0x42cf30
push esi
push 0
push 1
push dword [0x4ab37c]
call dword [sym.imp.MMFS2.dll_Ordinal_31]
mov eax, dword [0x4ab3a8]
mov esi, dword [eax + 0x970]
mov dword [esp + 0x14], esi
test esi, esi
je 0x42d0b0
mov edx, dword [eax + 0x30]
xor edi, edi
mov dword [esp + 0xc], edi
cmp dword [eax + 0x2c], edi
jle 0x42d0b0
add edx, 0x44
mov dword [esp + 0x20], edx
nop dword [eax]
mov ecx, dword [esi]
mov dword [edx - 4], ecx
mov eax, dword [esi + 4]
mov dword [edx], eax
cmp cx, 0xd
jne 0x42d08f
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
mov ecx, dword [0x4ab3a4]
mov dword [esp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
call fcn.00439b80
mov edi, eax
test edi, edi
je 0x42d085
mov edx, dword [edi]
mov ecx, edi
push dword [esp + 8]
call dword [edx + 0x38]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x42d085
mov eax, dword [0x4ab3a8]
mov eax, dword [eax + 0x970]
add eax, dword [esi + 0x10]
xor esi, esi
mov dword [esp + 8], eax
test ecx, ecx
je 0x42d081
nop dword [eax]
mov eax, dword [edi]
mov ecx, edi
push esi
mov eax, dword [eax + 0x18]
call eax
mov edx, dword [edi]
sub eax, 1
je 0x42d061
mov ecx, edi
sub eax, 2
je 0x42d044
mov eax, dword [esp + 8]
push dword [eax]
push esi
call dword [edx + 0x40]
jmp 0x42d075
push dword [0x4ab374]
push 0xfffffffffffffffe
call dword [edx + 0x40]
mov eax, dword [esp + 8]
mov ecx, edi
mov edx, dword [edi]
movzx eax, word [eax]
push eax
push esi
call dword [edx + 0x48]
jmp 0x42d075
mov eax, dword [esp + 8]
push ecx
mov ecx, edi
movss xmm0, dword [eax]
movss dword [esp], xmm0
push esi
call dword [edx + 0x44]
add dword [esp + 8], 4
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x42d020
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [edx], edi
mov edi, dword [esp + 0xc]
mov eax, dword [0x4ab3a8]
inc edi
add edx, 0x60
mov dword [esp + 0xc], edi
add esi, 0x14
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], esi
cmp edi, dword [eax + 0x2c]
jl 0x42cfb0
push dword [eax + 0x2c]
push dword [0x4ab37c]
call dword [sym.imp.MMFS2.dll_Ordinal_959]
mov eax, dword [0x4ab3a8]
xor edi, edi
mov esi, dword [eax + 0x30]
cmp dword [eax + 0x2c], edi
jle 0x42d0fb
add esi, 0x44
mov eax, dword [esi - 0x18]
shr eax, 7
and eax, 1
push eax
push dword [esi]
push dword [esi - 4]
push edi
push dword [0x4ab37c]
call dword [sym.imp.MMFS2.dll_Ordinal_945]
mov eax, dword [0x4ab3a8]
lea esi, [esi + 0x60]
inc edi
cmp edi, dword [eax + 0x2c]
jl 0x42d0d1
mov eax, dword [0x4ab3a4]
cmp dword [eax + 0x1fc], 0
jne 0x42d135
mov esi, dword [sym.imp.USER32.dll_GetInputState]
call esi
test eax, eax
je 0x42d135
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
nop dword [eax + eax]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call edi
call esi
test eax, eax
jne 0x42d120
push 0
push dword [0x4ab37c]
call dword [sym.imp.MMFS2.dll_Ordinal_63]
push dword [0x4ab380]
mov esi, dword [sym.imp.USER32.dll_IsWindowVisible]
call esi
test eax, eax
jne 0x42d186
mov eax, dword [0x4ab3a4]
cmp dword [eax + 0x1a8], 0
jne 0x42d186
call fcn.00447b10
call fcn.004479b0
mov eax, dword [0x4ab3a4]
movzx eax, word [eax + 0x14]
test eax, 0x100
je 0x42d186
test al, al
js 0x42d186
call fcn.00459190
push dword [0x4ab384]
call esi
test eax, eax
jne 0x42d197
call fcn.004475a0
mov esi, dword [0x4ab3a8]
test esi, esi
je 0x42d1c2
mov eax, dword [esi + 0x980]
test eax, eax
je 0x42d1c2
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_174]
mov dword [esi + 0x980], 0
mov esi, dword [0x4ab3a8]
cmp dword [0x4ab3b8], 0
jne 0x42d1dd
push dword [0x4ab37c]
call dword [sym.imp.MMFS2.dll_Ordinal_832]
mov esi, dword [0x4ab3a8]
cmp word [0x4ab38e], 3
jne 0x42d238
mov ecx, dword [0x4ab3a4]
cmp dword [ecx + 0x1a8], 0
jne 0x42d1fb
mov eax, dword [esi + 0x14]
jmp 0x42d21e
mov eax, dword [ecx + 0x1a8]
test eax, eax
je 0x42d211
mov ecx, eax
mov eax, dword [ecx + 0x1a8]
test eax, eax
jne 0x42d205
mov eax, dword [ecx + 0x1d8]
test eax, eax
je 0x42d238
mov eax, dword [eax + 0x14]
test eax, eax
je 0x42d238
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x42d238
push 0
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_742]
mov esi, dword [0x4ab3a8]
mov ecx, esi
call fcn.0042db30
mov eax, dword [0x4ab3a8]
mov esi, 0x400
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test byte [eax + 0xc], 2
je 0x42d29d
push dword [0x4ab380]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x42d28e
mov eax, dword [0x4ab3a4]
cmp dword [eax + 0x1a8], 0
jne 0x42d28e
mov ecx, 0x200
test word [eax + 0x14], cx
je 0x42d28e
test word [eax + 0x16], si
jne 0x42d28e
push 3
push dword [0x4ab380]
call edi
call fcn.004475a0
call fcn.00447e70
mov eax, dword [0x4ab3a8]
mov dword [eax + 0x90c], 0
mov esi, dword [0x4ab3a8]
mov edx, dword [esi + 0x80]
mov dword [esp + 0xc], edx
cmp word [edx], 0
je 0x42d354
movzx ecx, byte [edx + 3]
lea edi, [edx + 0x10]
movzx eax, byte [edx + 2]
add ecx, eax
mov dword [esp + 0x20], ecx
je 0x42d33b
movsx edx, byte [edi + 0xc]
mov eax, dword [edi + 2]
test edx, edx
jle 0x42d329
sar eax, 0x1f
lea ecx, [edi + 0xe]
and eax, 2
add ecx, eax
nop word [eax + eax]
cmp word [ecx + 2], 0x2b
jne 0x42d31b
movsx eax, word [ecx + 4]
sub eax, 1
je 0x42d30e
sub eax, 1
jne 0x42d31b
or dword [esi + 0x90c], 2
jmp 0x42d315
or dword [esi + 0x90c], 1
mov esi, dword [0x4ab3a8]
movsx eax, word [ecx]
dec edx
add ecx, eax
test edx, edx
jg 0x42d2f0
mov ecx, dword [esp + 0x20]
movsx eax, word [edi]
dec ecx
add edi, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
jg 0x42d2d4
mov edx, dword [esp + 0xc]
movsx eax, word [edx]
sub edx, eax
mov dword [esp + 0xc], edx
cmp word [edx], 0
jne 0x42d2c1
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0043af40
mov dword [esi + 0x960], eax
mov ecx, dword [0x4ab3a8]
test byte [ecx + 0xc], 0x20
push dword [ecx + 0x960]
je 0x42d390
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 [0x4ab37c]
call dword [sym.imp.MMFS2.dll_Ordinal_102]
jmp 0x42d3a0
push 0x10
push 0x40
push dword [0x4ab37c]
call dword [sym.imp.MMFS2.dll_Ordinal_101]
lea ecx, [esp + 0x20]
call fcn.00402800
mov ecx, dword [esp + 0x20]
sub ecx, dword [0x4ab788]
mov eax, dword [esp + 0x24]
sbb eax, dword [0x4ab78c]
push 0
push 0xf4240
push eax
push ecx
call fcn.004893b0
mov ecx, dword [0x4ab3a4]
mov dword [ecx + 0x1e0], eax
xor ecx, ecx
mov eax, dword [0x4ab3a8]
cmp dword [eax + 0x60], ecx
setne cl
call fcn.0044d5e0
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
je 0x42d45c
push 1
push dword [0x4ab37c]
call dword [sym.imp.MMFS2.dll_Ordinal_63]
mov ecx, dword [0x4ab3a4]
mov ecx, dword [ecx + 0x1d8]
call fcn.00429d50
mov eax, dword [0x4ab3a4]
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_174]
mov dword [eax + 0x1d8], 0
mov eax, dword [0x4ab3a4]
mov eax, dword [eax + 0x3cc]
test eax, eax
je 0x42d448
push eax
call edi
mov eax, dword [0x4ab3a4]
mov dword [eax + 0x3cc], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42d746
push eax
call edi
jmp 0x42d746
mov eax, dword [0x4ab3a8]
cmp dword [eax + 0x60], 0
je 0x42d4af
cmp dword [eax + 0x74], 0
jne 0x42d486
call fcn.0044d7c0
mov ecx, dword [0x4ab3a8]
mov dword [ecx + 0x74], eax
mov eax, dword [0x4ab3a8]
cmp dword [eax + 0x74], 0
je 0x42d497
mov eax, dword [0x4ab3a4]
mov dword [eax + 0x1e4], 5
jmp 0x42d4be
mov eax, dword [esp + 0x18]
test eax, eax
mov edx, dword [esp + 0x10]
cmovne edx, eax
xor ecx, ecx
call fcn.0042c5a0
test eax, eax
jne 0x42d4be
mov eax, dword [0x4ab3a4]
mov dword [eax + 0x1e4], 3
push dword [0x4ab384]
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov eax, dword [0x4ab3a4]
cmp dword [eax + 0x1a8], 0
jne 0x42d59f
push dword [0x4ab380]
mov esi, dword [sym.imp.USER32.dll_IsWindowVisible]
call esi
test eax, eax
jne 0x42d541
test byte [0x4ab38c], 0x10
je 0x42d4ff
cmp dword [0x4ab3b8], eax
jne 0x42d510
mov eax, dword [0x4ab3a4]
test dword [eax + 0x1b0], 0x4000000
je 0x42d514
push 0
jmp 0x42d516
push 1
push dword [0x4ab384]
call edi
mov eax, dword [0x4ab3a4]
mov ecx, 0x400
test word [eax + 0x16], cx
jne 0x42d585
movzx eax, byte [eax + 0x15]
and eax, 2
or eax, 1
push eax
push dword [0x4ab380]
jmp 0x42d583
push dword [0x4ab384]
call esi
test eax, eax
je 0x42d554
call fcn.004475a0
jmp 0x42d585
test byte [0x4ab38c], 0x10
je 0x42d566
cmp dword [0x4ab3b8], 0
jne 0x42d577
mov eax, dword [0x4ab3a4]
test dword [eax + 0x1b0], 0x4000000
je 0x42d57b
push 0
jmp 0x42d57d
push 1
push dword [0x4ab384]
call edi
push 0
push 0
push 0x30f
push dword [0x4ab380]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x42d6ac
mov ecx, dword [eax + 0x1b0]
mov esi, dword [eax + 0x1bc]
mov edi, dword [eax + 0x1c0]
test cl, 0x20
je 0x42d624
test ecx, 0x1000000
jne 0x42d613
push 0xffffffffffffffec
push dword [0x4ab384]
mov dword [esp + 0x30], esi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], edi
call esi
push 0xfffffffffffffff0
push dword [0x4ab384]
mov edi, eax
call esi
push edi
push 0
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
sub esi, dword [esp + 0x20]
sub edi, dword [esp + 0x24]
jmp 0x42d61f
and ecx, 0xfeffffff
mov dword [eax + 0x1b0], ecx
mov eax, dword [0x4ab3a4]
test byte [eax + 0x14], 0x10
je 0x42d64a
push dword [0x4ab37c]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
or ax, 2
movzx eax, ax
push eax
push dword [0x4ab37c]
call dword [sym.imp.MMFS2.dll_Ordinal_17]
push dword [0x4ab384]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x42d66d
push 0x16
push edi
push esi
push eax
push eax
push eax
push dword [0x4ab384]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x4ab3a4]
cmp dword [eax + 0x1b4], 0
je 0x42d6ac
test byte [0x4ab38c], 0x10
je 0x42d68d
cmp dword [0x4ab3b8], 0
jne 0x42d699
test dword [eax + 0x1b0], 0x4000000
je 0x42d69d
push 0
jmp 0x42d69f
push 1
push dword [0x4ab384]
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov eax, dword [0x4ab3a4]
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_174]
mov eax, dword [eax + 0x3cc]
test eax, eax
je 0x42d6db
push eax
call edi
mov eax, dword [0x4ab3a4]
mov dword [eax + 0x3cc], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42d6e6
push eax
call edi
cmp dword [0x4ab3b8], 0
je 0x42d742
cmp word [0x4ab38e], 3
jne 0x42d742
cmp dword [0x4ab388], 0
je 0x42d742
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x20], eax
test eax, eax
je 0x42d742
mov edi, dword [sym.imp.GDI32.dll_SelectPalette]
push 0
push dword [0x4ab388]
push eax
call edi
push dword [esp + 0x20]
mov esi, eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 1
push esi
mov esi, dword [esp + 0x28]
push esi
call edi
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0xc]
push 1
push dword [0x4ab37c]
call dword [sym.imp.MMFS2.dll_Ordinal_63]
test esi, esi
je 0x42d767
mov eax, dword [0x4ab3a4]
mov dword [eax + 0x1e4], 6
mov ecx, dword [esp + 0x44]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0046d741
mov esp, ebp
pop ebp
ret