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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42aa40
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x43fee0]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x20], ebx
call sub.MFC80.DLL_Ordinal_4580
xor esi, esi
push esi
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call sub.MFC80.DLL_Ordinal_2371
mov edi, eax
cmp edi, esi
je 0x402f2a
lea ecx, [esp + 0x18]
call fcn.0040fd2b
push 0xf
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa4], esi
call fcn.0040fd38
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], esi
je 0x402f18
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
push 0x800
push dword [edi + 4]
call esi
push dword [esp + 0x18]
push 0x10
push 0
push dword [edi + 4]
call esi
or dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [ebx + 0x51c]
lea eax, [ebx + 0xaa0]
call fcn.00406603
cmp byte [ebx + 0x4ec], 0
je 0x402f49
call fcn.00403580
push 0
push ebx
call fcn.0040ddfa
pop ecx
pop ecx
push dword [ebx + 0x74]
push 1
push 0x80
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, 0xff00ff
push edi
push 0x18
pop esi
push esi
push esi
push 0x88
lea ecx, [ebx + 0x78]
call fcn.0040f7e3
push edi
push esi
push esi
push 0x99
lea ecx, [ebx + 0x104]
call fcn.0040f7e3
push edi
push esi
push esi
push 0x98
lea ecx, [ebx + 0x190]
call fcn.0040f7e3
push edi
push esi
push esi
lea ecx, [ebx + 0x21c]
push 0x94
mov dword [esp + 0x78], ecx
call fcn.0040f7e3
push edi
push esi
push esi
push 0x96
lea ecx, [ebx + 0x2a8]
call fcn.0040f7e3
push edi
push esi
push esi
push 0x95
lea ecx, [ebx + 0x334]
call fcn.0040f7e3
call fcn.00403675
lea eax, [esp + 0x38]
push eax
lea eax, [ebx + 0x51c]
call fcn.004053e4
push eax
lea edi, [ebx + 0x56c]
mov dword [esp + 0xa4], 1
call fcn.00405c02
or dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
push 0xa
push 0x1e
push 8
push 0x10
lea esi, [ebx + 0xc38]
push 0x10
mov ecx, esi
call sub.MFC80.DLL_Ordinal_1564
push 0xffffff
push dword [ebx + 0xc3c]
call fcn.0040290c
call sub.MFC80.DLL_Ordinal_1084
push 0x93
call fcn.0040296c
push eax
push 0xffffffffffffffff
push dword [ebx + 0xc3c]
call fcn.004028eb
test esi, esi
je 0x40306a
mov esi, dword [esi + 4]
push esi
push 0
push 0x1109
push dword [ebx + 0x488]
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call sub.MFC80.DLL_Ordinal_2370
lea ecx, [esp + 0x1c]
call fcn.0040fd2b
push 2
pop esi
push 0x4a
lea ecx, [esp + 0x20]
mov dword [esp + 0xa4], esi
call fcn.0040fd38
push 0xffff0000
push dword [esp + 0x20]
lea edi, [ebx + 0x468]
mov ecx, edi
mov dword [esp + 0x1c], edi
call fcn.004029a0
mov dword [esp + 0x18], eax
call sub.MFC80.DLL_Ordinal_1084
push 0x80
call fcn.0040296c
push eax
push 0xffffffffffffffff
push dword [ebx + 0xc3c]
call fcn.004028eb
mov ebx, dword [esp + 0x18]
push eax
push eax
push ebx
mov ecx, edi
call fcn.004029be
and dword [esp + 0x2c], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x54], ebx
lea esi, [esp + 0x28]
lea edi, [esp + 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x54]
lea ebx, [esi + 0x4bc]
push eax
lea edi, [esp + 0x4c]
mov dword [esp + 0x28], ebx
call fcn.00404224
push 0x32
lea ecx, [esp + 0x20]
call fcn.0040fd38
push dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.004029a0
mov edi, eax
mov dword [esp + 0x6c], edi
call sub.MFC80.DLL_Ordinal_1084
push 0x90
call fcn.0040296c
push eax
push 0xffffffffffffffff
push dword [esi + 0xc3c]
call fcn.004028eb
mov ecx, dword [esp + 0x14]
push eax
push eax
push edi
call fcn.004029be
and dword [esp + 0x2c], 0
mov dword [esp + 0x54], edi
mov dword [esp + 0x28], 7
lea esi, [esp + 0x28]
lea edi, [esp + 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x54]
movsd dword es:[edi], dword [esi]
push eax
lea edi, [esp + 0x4c]
call fcn.00404224
push 0x31
lea ecx, [esp + 0x20]
call fcn.0040fd38
push dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.004029a0
mov ecx, dword [esp + 0x14]
xor edi, edi
push edi
push 0x10
push 0x10
push edi
push edi
push edi
mov esi, eax
push 8
push esi
mov dword [esp + 0x60], esi
call sub.MFC80.DLL_Ordinal_5868
call sub.MFC80.DLL_Ordinal_1084
push 0x8e
call fcn.0040296c
push eax
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push dword [eax + 0xc3c]
call fcn.004028eb
mov ecx, dword [esp + 0x14]
push eax
push eax
push esi
call fcn.004029be
mov dword [esp + 0x2c], edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x28], 3
lea esi, [esp + 0x28]
lea edi, [esp + 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x54]
movsd dword es:[edi], dword [esi]
push eax
lea edi, [esp + 0x4c]
call fcn.00404224
push 0x33
lea ecx, [esp + 0x20]
call fcn.0040fd38
push dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.004029a0
mov ecx, dword [esp + 0x14]
mov esi, eax
xor eax, eax
push eax
push 0x10
push 0x10
push eax
push eax
push eax
push 8
push esi
mov dword [esp + 0x58], esi
call sub.MFC80.DLL_Ordinal_5868
call sub.MFC80.DLL_Ordinal_1084
push 0x8f
call fcn.0040296c
push eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push dword [eax + 0xc3c]
call fcn.004028eb
push eax
mov ecx, dword [esp + 0x18]
push eax
push esi
call fcn.004029be
mov dword [esp + 0x54], esi
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], 1
lea esi, [esp + 0x28]
lea edi, [esp + 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x54]
movsd dword es:[edi], dword [esi]
push eax
lea edi, [esp + 0x4c]
call fcn.00404224
mov esi, dword [esp + 0x20]
lea edi, [esi + 0x504]
lea eax, [esp + 0x48]
mov ecx, edi
mov dword [esp + 0x70], edi
call fcn.00401cb0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x13], 0
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x1b]
push eax
lea ebx, [esp + 0x38]
lea ecx, [esp + 0x54]
mov eax, edi
mov byte [esp + 0xac], 3
call fcn.00401cbe
jmp 0x4033cf
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x38]
jne 0x40331e
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
push eax
push dword [esp + 0x40]
call fcn.004029a0
push dword [esp + 0x44]
mov edi, eax
push 0xffffffffffffffff
push dword [esi + 0xc3c]
mov dword [esp + 0x80], edi
call fcn.004028eb
test eax, eax
jl 0x403356
mov ecx, dword [esp + 0x14]
push eax
push eax
push edi
call fcn.004029be
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x78], edi
mov dword [esp + 0x28], 5
lea esi, [esp + 0x28]
lea edi, [esp + 0x7c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x78]
movsd dword es:[edi], dword [esi]
push eax
lea edi, [esp + 0x58]
call fcn.00404224
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x8c]
call fcn.004067d9
push dword [esp + 0x90]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x90]
push dword [esp + 0x7c]
call fcn.00403834
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x1b]
push eax
mov eax, dword [esp + 0x7c]
lea ebx, [esp + 0x38]
lea ecx, [esp + 0x54]
call fcn.00401cbe
mov esi, dword [esp + 0x20]
test al, al
jne 0x40330f
push dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
push str.Decoder
call fcn.004029a0
mov edi, eax
mov ecx, 0xc351
lea eax, [esp + 0x48]
mov dword [esp + 0x28], 4
mov dword [esp + 0x2c], ecx
call fcn.004067d9
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 4]
push ecx
push dword [eax]
mov dword [esp + 0x3c], ecx
push edi
mov ecx, esi
call fcn.00403834
call sub.MFC80.DLL_Ordinal_1084
push 0x93
call fcn.0040296c
push eax
push 0xffffffffffffffff
push dword [esi + 0xc3c]
call fcn.004028eb
mov ecx, dword [esp + 0x14]
push eax
push eax
push edi
call fcn.004029be
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x78], edi
lea esi, [esp + 0x28]
lea edi, [esp + 0x7c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x78]
movsd dword es:[edi], dword [esi]
push eax
lea edi, [esp + 0x58]
call fcn.00404224
push dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
push str.Encoder
call fcn.004029a0
mov esi, eax
mov ecx, 0xc352
lea eax, [esp + 0x48]
mov dword [esp + 0x28], 4
mov dword [esp + 0x2c], ecx
call fcn.004067d9
mov ecx, dword [eax]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 4]
push ecx
push dword [eax]
mov dword [esp + 0x3c], ecx
push esi
mov ecx, edi
call fcn.00403834
call sub.MFC80.DLL_Ordinal_1084
push 0x93
call fcn.0040296c
push eax
push 0xffffffffffffffff
push dword [edi + 0xc3c]
call fcn.004028eb
mov ecx, dword [esp + 0x14]
push eax
push eax
push esi
call fcn.004029be
mov dword [esp + 0x78], esi
lea esi, [esp + 0x28]
lea edi, [esp + 0x7c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x78]
movsd dword es:[edi], dword [esi]
push eax
lea edi, [esp + 0x58]
call fcn.00404224
push dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 2
mov edi, 0x1102
push edi
push dword [ebx + 0x488]
call esi
push dword [esp + 0x40]
push 2
push edi
push dword [ebx + 0x488]
call esi
push dword [esp + 0x38]
push 2
push edi
push dword [ebx + 0x488]
call esi
push dword [esp + 0x6c]
push 9
push 0x110b
push dword [ebx + 0x488]
call esi
mov ecx, dword [esp + 0x68]
push 1
call fcn.0040f34d
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret