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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x4b3ca0]
xor eax, esp
mov dword [esp + 0x3c], eax
mov edx, dword [0x4b70e4]
push esi
push edi
mov ecx, dword [edx + 0x1ec]
cmp ecx, dword [edx + 0x1f0]
je 0x42cdff
call fcn.0042afc0
mov ecx, dword [0x4b70e4]
mov dword [ecx + 0x1d8], eax
test eax, eax
jne 0x42cde7
or esi, 0xffffffff
jmp 0x42d9d6
mov ecx, dword [0x4b70e4]
mov eax, dword [ecx + 0x1ec]
mov dword [ecx + 0x1f0], eax
mov edx, dword [0x4b70e4]
cmp dword [edx + 0x1a8], 0
je 0x42ce2a
mov eax, dword [0x4b70e8]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x42cedb
push eax
push dword [0x4b70c4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x42ced5
mov ecx, dword [0x4b70e8]
test byte [ecx + 0xc], 1
je 0x42cec1
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x42cec1
cmp word [ecx], 0
je 0x42cec1
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ce50
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 0x42ce70
sub edx, esi
lea eax, [ecx + 0xa]
sar edx, 1
add eax, edx
push 2
push eax
call fcn.0047b099
mov ecx, dword [0x4b70e8]
mov esi, eax
push dword [ecx + 0x10]
mov ecx, dword [0x4b70e4]
push dword [ecx + 0x80]
push str._s____s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, esi
call fcn.0042b3d0
push esi
call fcn.0047b0af
add esp, 0x1c
jmp 0x42ced5
mov ecx, dword [edx + 0x80]
test ecx, ecx
jne 0x42ced0
mov ecx, str.Untitled
call fcn.0042b3d0
mov edx, dword [0x4b70e4]
mov eax, dword [edx + 0xd8]
mov ecx, dword [edx + 0x1f0]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x42cf2d
xor esi, esi
test eax, eax
jle 0x42cf2d
xor edi, edi
nop word [eax + eax]
mov eax, dword [edx + 0xdc]
mov eax, dword [eax + edi + 0x3c]
test eax, eax
je 0x42cf21
push ecx
push edx
push 0x4b70b0
call eax
mov edx, dword [0x4b70e4]
mov ecx, dword [esp + 0x20]
inc esi
add edi, 0x4c
cmp esi, dword [edx + 0xd8]
jl 0x42cf00
mov eax, dword [0x4b70e8]
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], 0
mov dword [eax + 0x20], 0
mov eax, dword [0x4b70e8]
mov dword [eax + 0x1c], 0
mov eax, dword [0x4b70e8]
mov dword [eax + 0x28], 0
mov eax, dword [0x4b70e8]
mov dword [eax + 0x24], 0
mov eax, dword [0x4b70e8]
mov dword [eax + 0x78], 0
mov eax, dword [0x4b70e8]
mov dword [eax + 0x74], 0
mov ecx, dword [0x4b70e4]
cmp dword [ecx + 0x1a8], edx
mov edx, dword [0x4b70e8]
je 0x42cfb1
test dword [ecx + 0x1b0], 0x200000
je 0x42cfb1
mov esi, dword [ecx + 0x1bc]
mov edi, dword [ecx + 0x1c0]
jmp 0x42cfde
test dword [edx + 0xc], 0x100
je 0x42cfc8
mov esi, dword [0x4b727c]
mov edi, dword [0x4b7278]
jmp 0x42cfde
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 0x42cfde
mov edi, eax
mov dword [edx + 0x958], esi
mov eax, dword [0x4b70e8]
mov dword [eax + 0x95c], edi
mov ecx, dword [0x4b70e8]
test dword [ecx + 0xc], 0x800
jne 0x42d19f
push 0
push dword [0x4b70bc]
call dword [sym.imp.MMFS2.dll_Ordinal_34]
mov ecx, dword [0x4b70e4]
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 [0x4b70e8]
mov dword [ecx + 0x18], eax
mov ecx, dword [0x4b70e4]
push dword [ecx + 0x1cc]
mov ecx, dword [0x4b70e8]
push edi
push esi
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_372]
mov ecx, dword [0x4b70e8]
push dword [0x4b70e4]
push 0x42e700
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_982]
test byte [0x4b70cc], 0x40
je 0x42d0c8
mov eax, dword [0x4b70e8]
mov edx, dword [eax + 0x18]
mov eax, dword [0x4b70e4]
test eax, eax
je 0x42d09d
mov ecx, dword [eax + 0x3bc]
test ecx, ecx
je 0x42d09d
test dword [ecx], 0x40000000
je 0x42d09d
mov ecx, 1
jmp 0x42d09f
xor ecx, ecx
test eax, eax
je 0x42d0bc
mov eax, dword [eax + 0x3bc]
test eax, eax
je 0x42d0bc
test dword [eax], 0x40000000
je 0x42d0bc
mov eax, 1
jmp 0x42d0be
xor eax, eax
push ecx
push eax
mov ecx, edx
call dword [sym.imp.MMFS2.dll_Ordinal_1106]
mov eax, dword [0x4b70e4]
cmp byte [eax + 0x3f8], 0
je 0x42d0f2
push ecx
mov ecx, dword [0x4b70e8]
mov dword [esp], 0x3f800000
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_1017]
mov eax, dword [0x4b70e4]
cmp dword [0x4b71b4], 0
je 0x42d123
cmp dword [eax + 0x1a8], 0
jne 0x42d123
movzx eax, byte [eax + 0x7d]
mov ecx, dword [0x4b70e8]
shl eax, 4
or eax, 5
push eax
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_876]
mov eax, dword [0x4b70e4]
mov eax, dword [eax + 0x23c]
test eax, eax
je 0x42d13d
mov ecx, dword [0x4b70e8]
push eax
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_361]
mov eax, dword [0x4b70e8]
push dword [eax + 0x18]
push dword [0x4b70bc]
call dword [sym.imp.MMFS2.dll_Ordinal_32]
mov ecx, dword [0x4b70e8]
test byte [ecx + 0xc], 4
je 0x42d184
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42d184
mov edx, dword [esp + 0x18]
push dword [ecx + 0x18]
test edx, edx
je 0x42d17a
mov ecx, edx
call dword [sym.imp.MMFS2.dll_Ordinal_342]
jmp 0x42d199
mov ecx, eax
call dword [sym.imp.MMFS2.dll_Ordinal_342]
jmp 0x42d199
test byte [0x4b70cc], 0x10
jne 0x42d19f
push dword [ecx + 8]
mov ecx, dword [ecx + 0x18]
call dword [sym.imp.MMFS2.dll_Ordinal_445]
mov ecx, dword [0x4b70e8]
movsx eax, word [ecx + 0x8f0]
mov edi, dword [ecx + 0x44]
mov edx, dword [ecx + 0x50]
lea esi, [eax*2 + 0x10]
test edi, edi
jle 0x42d1f8
add edx, 2
nop word [eax + eax]
cmp word [edx + 0xe], 0
jbe 0x42d1f0
mov eax, dword [0x4b70e4]
movzx ecx, word [edx]
mov eax, dword [eax + 0x198]
movzx eax, word [eax + ecx*2]
imul ecx, eax, 0x2c
mov eax, dword [0x4b70e4]
mov eax, dword [eax + 0x400]
cmp word [ecx + eax + 2], 2
jae 0x42d1f0
inc esi
add edx, 0x24
sub edi, 1
jne 0x42d1c0
push esi
push 0
push 1
push dword [0x4b70bc]
call dword [sym.imp.MMFS2.dll_Ordinal_31]
mov eax, dword [0x4b70e8]
mov esi, dword [eax + 0x970]
mov dword [esp + 0x14], esi
test esi, esi
je 0x42d340
mov edx, dword [eax + 0x30]
xor edi, edi
mov dword [esp + 0xc], edi
cmp dword [eax + 0x2c], edi
jle 0x42d340
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 0x42d31f
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
mov ecx, dword [0x4b70e4]
mov dword [esp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
call fcn.00439c90
mov edi, eax
test edi, edi
je 0x42d315
mov edx, dword [edi]
mov ecx, edi
push dword [esp + 8]
call dword [edx + 0x38]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x42d315
mov eax, dword [0x4b70e8]
mov eax, dword [eax + 0x970]
add eax, dword [esi + 0x10]
xor esi, esi
mov dword [esp + 8], eax
test ecx, ecx
je 0x42d311
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 0x42d2f1
mov ecx, edi
sub eax, 2
je 0x42d2d4
mov eax, dword [esp + 8]
push dword [eax]
push esi
call dword [edx + 0x40]
jmp 0x42d305
push dword [0x4b70b4]
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 0x42d305
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 0x42d2b0
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [edx], edi
mov edi, dword [esp + 0xc]
mov eax, dword [0x4b70e8]
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 0x42d240
push dword [eax + 0x2c]
push dword [0x4b70bc]
call dword [sym.imp.MMFS2.dll_Ordinal_959]
mov eax, dword [0x4b70e8]
xor edi, edi
mov esi, dword [eax + 0x30]
cmp dword [eax + 0x2c], edi
jle 0x42d38b
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 [0x4b70bc]
call dword [sym.imp.MMFS2.dll_Ordinal_945]
mov eax, dword [0x4b70e8]
lea esi, [esi + 0x60]
inc edi
cmp edi, dword [eax + 0x2c]
jl 0x42d361
mov eax, dword [0x4b70e4]
cmp dword [eax + 0x1fc], 0
jne 0x42d3c5
mov esi, dword [sym.imp.USER32.dll_GetInputState]
call esi
test eax, eax
je 0x42d3c5
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 0x42d3b0
push 0
push dword [0x4b70bc]
call dword [sym.imp.MMFS2.dll_Ordinal_63]
push dword [0x4b70c0]
mov esi, dword [sym.imp.USER32.dll_IsWindowVisible]
call esi
test eax, eax
jne 0x42d416
mov eax, dword [0x4b70e4]
cmp dword [eax + 0x1a8], 0
jne 0x42d416
call fcn.00447c20
call fcn.00447ac0
mov eax, dword [0x4b70e4]
movzx eax, word [eax + 0x14]
test eax, 0x100
je 0x42d416
test al, al
js 0x42d416
call fcn.00459310
push dword [0x4b70c4]
call esi
test eax, eax
jne 0x42d427
call fcn.004476b0
mov esi, dword [0x4b70e8]
test esi, esi
je 0x42d452
mov eax, dword [esi + 0x980]
test eax, eax
je 0x42d452
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_174]
mov dword [esi + 0x980], 0
mov esi, dword [0x4b70e8]
cmp dword [0x4b70f8], 0
jne 0x42d46d
push dword [0x4b70bc]
call dword [sym.imp.MMFS2.dll_Ordinal_832]
mov esi, dword [0x4b70e8]
cmp word [0x4b70ce], 3
jne 0x42d4c8
mov ecx, dword [0x4b70e4]
cmp dword [ecx + 0x1a8], 0
jne 0x42d48b
mov eax, dword [esi + 0x14]
jmp 0x42d4ae
mov eax, dword [ecx + 0x1a8]
test eax, eax
je 0x42d4a1
mov ecx, eax
mov eax, dword [ecx + 0x1a8]
test eax, eax
jne 0x42d495
mov eax, dword [ecx + 0x1d8]
test eax, eax
je 0x42d4c8
mov eax, dword [eax + 0x14]
test eax, eax
je 0x42d4c8
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x42d4c8
push 0
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_742]
mov esi, dword [0x4b70e8]
mov ecx, esi
call fcn.0042ddc0
mov eax, dword [0x4b70e8]
mov esi, 0x400
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test byte [eax + 0xc], 2
je 0x42d52d
push dword [0x4b70c0]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x42d51e
mov eax, dword [0x4b70e4]
cmp dword [eax + 0x1a8], 0
jne 0x42d51e
mov ecx, 0x200
test word [eax + 0x14], cx
je 0x42d51e
test word [eax + 0x16], si
jne 0x42d51e
push 3
push dword [0x4b70c0]
call edi
call fcn.004476b0
call fcn.00447f80
mov eax, dword [0x4b70e8]
mov dword [eax + 0x90c], 0
mov esi, dword [0x4b70e8]
mov edx, dword [esi + 0x80]
mov dword [esp + 0xc], edx
cmp word [edx], 0
je 0x42d5e4
movzx ecx, byte [edx + 3]
lea edi, [edx + 0x10]
movzx eax, byte [edx + 2]
add ecx, eax
mov dword [esp + 0x20], ecx
je 0x42d5cb
movsx edx, byte [edi + 0xc]
mov eax, dword [edi + 2]
test edx, edx
jle 0x42d5b9
sar eax, 0x1f
lea ecx, [edi + 0xe]
and eax, 2
add ecx, eax
nop word [eax + eax]
cmp word [ecx + 2], 0x2b
jne 0x42d5ab
movsx eax, word [ecx + 4]
sub eax, 1
je 0x42d59e
sub eax, 1
jne 0x42d5ab
or dword [esi + 0x90c], 2
jmp 0x42d5a5
or dword [esi + 0x90c], 1
mov esi, dword [0x4b70e8]
movsx eax, word [ecx]
dec edx
add ecx, eax
test edx, edx
jg 0x42d580
mov ecx, dword [esp + 0x20]
movsx eax, word [edi]
dec ecx
add edi, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
jg 0x42d564
mov edx, dword [esp + 0xc]
movsx eax, word [edx]
sub edx, eax
mov dword [esp + 0xc], edx
cmp word [edx], 0
jne 0x42d551
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0043b050
mov dword [esi + 0x960], eax
mov ecx, dword [0x4b70e8]
test byte [ecx + 0xc], 0x20
push dword [ecx + 0x960]
je 0x42d620
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 [0x4b70bc]
call dword [sym.imp.MMFS2.dll_Ordinal_102]
jmp 0x42d630
push 0x10
push 0x40
push dword [0x4b70bc]
call dword [sym.imp.MMFS2.dll_Ordinal_101]
lea ecx, [esp + 0x20]
call fcn.00402820
mov ecx, dword [esp + 0x20]
sub ecx, dword [0x4b74c8]
mov eax, dword [esp + 0x24]
sbb eax, dword [0x4b74cc]
push 0
push 0xf4240
push eax
push ecx
call fcn.004939e0
mov ecx, dword [0x4b70e4]
mov dword [ecx + 0x1e0], eax
xor ecx, ecx
mov eax, dword [0x4b70e8]
cmp dword [eax + 0x60], ecx
setne cl
call fcn.0044d710
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
je 0x42d6ec
push 1
push dword [0x4b70bc]
call dword [sym.imp.MMFS2.dll_Ordinal_63]
mov ecx, dword [0x4b70e4]
mov ecx, dword [ecx + 0x1d8]
call fcn.00429fe0
mov eax, dword [0x4b70e4]
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_174]
mov dword [eax + 0x1d8], 0
mov eax, dword [0x4b70e4]
mov eax, dword [eax + 0x3cc]
test eax, eax
je 0x42d6d8
push eax
call edi
mov eax, dword [0x4b70e4]
mov dword [eax + 0x3cc], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42d9d6
push eax
call edi
jmp 0x42d9d6
mov eax, dword [0x4b70e8]
cmp dword [eax + 0x60], 0
je 0x42d73f
cmp dword [eax + 0x74], 0
jne 0x42d716
call fcn.0044d900
mov ecx, dword [0x4b70e8]
mov dword [ecx + 0x74], eax
mov eax, dword [0x4b70e8]
cmp dword [eax + 0x74], 0
je 0x42d727
mov eax, dword [0x4b70e4]
mov dword [eax + 0x1e4], 5
jmp 0x42d74e
mov eax, dword [esp + 0x18]
test eax, eax
mov edx, dword [esp + 0x10]
cmovne edx, eax
xor ecx, ecx
call fcn.0042c830
test eax, eax
jne 0x42d74e
mov eax, dword [0x4b70e4]
mov dword [eax + 0x1e4], 3
push dword [0x4b70c4]
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov eax, dword [0x4b70e4]
cmp dword [eax + 0x1a8], 0
jne 0x42d82f
push dword [0x4b70c0]
mov esi, dword [sym.imp.USER32.dll_IsWindowVisible]
call esi
test eax, eax
jne 0x42d7d1
test byte [0x4b70cc], 0x10
je 0x42d78f
cmp dword [0x4b70f8], eax
jne 0x42d7a0
mov eax, dword [0x4b70e4]
test dword [eax + 0x1b0], 0x4000000
je 0x42d7a4
push 0
jmp 0x42d7a6
push 1
push dword [0x4b70c4]
call edi
mov eax, dword [0x4b70e4]
mov ecx, 0x400
test word [eax + 0x16], cx
jne 0x42d815
movzx eax, byte [eax + 0x15]
and eax, 2
or eax, 1
push eax
push dword [0x4b70c0]
jmp 0x42d813
push dword [0x4b70c4]
call esi
test eax, eax
je 0x42d7e4
call fcn.004476b0
jmp 0x42d815
test byte [0x4b70cc], 0x10
je 0x42d7f6
cmp dword [0x4b70f8], 0
jne 0x42d807
mov eax, dword [0x4b70e4]
test dword [eax + 0x1b0], 0x4000000
je 0x42d80b
push 0
jmp 0x42d80d
push 1
push dword [0x4b70c4]
call edi
push 0
push 0
push 0x30f
push dword [0x4b70c0]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x42d93c
mov ecx, dword [eax + 0x1b0]
mov esi, dword [eax + 0x1bc]
mov edi, dword [eax + 0x1c0]
test cl, 0x20
je 0x42d8b4
test ecx, 0x1000000
jne 0x42d8a3
push 0xffffffffffffffec
push dword [0x4b70c4]
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 [0x4b70c4]
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 0x42d8af
and ecx, 0xfeffffff
mov dword [eax + 0x1b0], ecx
mov eax, dword [0x4b70e4]
test byte [eax + 0x14], 0x10
je 0x42d8da
push dword [0x4b70bc]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
or ax, 2
movzx eax, ax
push eax
push dword [0x4b70bc]
call dword [sym.imp.MMFS2.dll_Ordinal_17]
push dword [0x4b70c4]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x42d8fd
push 0x16
push edi
push esi
push eax
push eax
push eax
push dword [0x4b70c4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x4b70e4]
cmp dword [eax + 0x1b4], 0
je 0x42d93c
test byte [0x4b70cc], 0x10
je 0x42d91d
cmp dword [0x4b70f8], 0
jne 0x42d929
test dword [eax + 0x1b0], 0x4000000
je 0x42d92d
push 0
jmp 0x42d92f
push 1
push dword [0x4b70c4]
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov eax, dword [0x4b70e4]
mov edi, dword [sym.imp.MMFS2.dll_Ordinal_174]
mov eax, dword [eax + 0x3cc]
test eax, eax
je 0x42d96b
push eax
call edi
mov eax, dword [0x4b70e4]
mov dword [eax + 0x3cc], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42d976
push eax
call edi
cmp dword [0x4b70f8], 0
je 0x42d9d2
cmp word [0x4b70ce], 3
jne 0x42d9d2
cmp dword [0x4b70c8], 0
je 0x42d9d2
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x20], eax
test eax, eax
je 0x42d9d2
mov edi, dword [sym.imp.GDI32.dll_SelectPalette]
push 0
push dword [0x4b70c8]
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 [0x4b70bc]
call dword [sym.imp.MMFS2.dll_Ordinal_63]
test esi, esi
je 0x42d9f7
mov eax, dword [0x4b70e4]
mov dword [eax + 0x1e4], 6
mov ecx, dword [esp + 0x44]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004775a3
mov esp, ebp
pop ebp
ret