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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x534648
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x584cc0]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push edi
mov eax, dword [0x584cc0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
push 0x105
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
lea edi, [esp + 0x1c]
mov ebx, esi
call fcn.004030a0
xor edi, edi
cmp eax, edi
je 0x402dc9
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x3fc]
lea edx, [esi + 0x404]
push edx
call fcn.0040d0f0
mov dword [esp + 0x18], eax
cmp eax, edi
jne 0x402e17
cmp dword [esp + 0x1c], 1
push edi
mov ecx, esi
push str.Error
jne 0x402ddf
push str.Machine_Status_Error
jmp 0x402de4
push str.Connet_Error
call fcn.004172cb
mov eax, dword [esi]
mov edx, dword [eax + 0x180]
mov ecx, esi
call edx
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0050ed6a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x814]
cmp ecx, edi
jne 0x402e3d
push 4
lea ecx, [esi + 0x26c]
call fcn.0041b900
push edi
push str.Error
push str.No_image_data
mov ecx, esi
jmp 0x402de4
mov dword [esp + 0x14], edi
cmp ecx, edi
jle 0x402dfa
lea ebx, [esi + 0x406]
mov dword [esp + 0x10], ebx
jmp 0x402e57
mov ebx, dword [esp + 0x10]
xor edi, edi
call fcn.0040fcc4
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x403090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x3c
lea ecx, [esp + 0x28]
push edi
push ecx
mov dword [esp + 0x84], edi
call fcn.00513670
mov al, byte [ebx - 2]
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], edx
cmp al, 0x4d
je 0x402eb6
cmp al, 0x50
jne 0x402ec6
push 5
push str.Parts
jmp 0x402ebd
push 4
push str.Mark
lea ecx, [esp + 0x14]
call fcn.00401ff0
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], 1
jle 0x402ee1
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.00402190
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 0x1a0]
lea ecx, [esp + 0x24]
push ecx
push edi
push 0x1007
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov ax, word [ebx]
mov word [esp + 0x60], ax
lea eax, [esp + 0x60]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402f20
sub eax, edx
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401ff0
mov ebx, dword [esp + 0xc]
cmp dword [ebx - 4], 1
jle 0x402f53
mov edx, dword [ebx - 0xc]
push edx
lea ecx, [esp + 0x10]
call fcn.00402190
mov ebx, dword [esp + 0xc]
mov ecx, dword [esi + 0x1a0]
lea eax, [esp + 0x24]
push eax
push 0
push 0x1006
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 1
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x10]
movzx eax, byte [edx - 1]
sub eax, 0
je 0x402f95
dec eax
jne 0x402fa9
push 2
push 0x561304
jmp 0x402f9c
push 2
push 0x561300
lea ecx, [esp + 0x14]
call fcn.00401ff0
mov ebx, dword [esp + 0xc]
cmp dword [ebx - 4], 1
jle 0x402fc0
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.00402190
mov ebx, dword [esp + 0xc]
mov edx, dword [esi + 0x1a0]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x1006
push edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 2
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x1a0]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x1006
add eax, 0x1e
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 3
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x1a0]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x1006
add eax, 0x27
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 4
call dword [sym.imp.USER32.dll_SendMessageA]
add ebx, 0xfffffff0
mov dword [esp + 0x78], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40306d
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], 0x68
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esi + 0x814]
jl 0x402e51
mov eax, dword [esp + 0x18]
jmp 0x402dfa
push 0x80004005
call fcn.00401000
int3