Function at 0x404f10
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x454010]
xor eax, esp
mov dword [esp + 0xd4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push edi
push 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 1
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push 0
call fcn.0041a040
add esp, 4
push eax
call fcn.0040e2a0
add esp, 4
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 1
mov dword [0x455bb0], eax
call fcn.0040e170
add esp, 4
push eax
push 0x450a58
push str.CONOUT_
call fcn.00419e50
add esp, 0xc
mov dword [esp + 0x80], 0x54
lea eax, [esp + 0x80]
push eax
push 0
push dword [0x455bb0]
call dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFontEx]
lea eax, [esp + 0x80]
mov dword [esp + 0x90], 0x2bc
push eax
push 0
push dword [0x455bb0]
call dword [sym.imp.KERNEL32.dll_SetCurrentConsoleFontEx]
push str.PokerGame_n
call fcn.004010f0
add esp, 4
push str.version_1.0_n
call fcn.004010f0
add esp, 4
push str.author:Yui3310_n
call fcn.004010f0
add esp, 4
push str.date:2024_3_18_n
call fcn.004010f0
add esp, 4
push str.version_1.0_n
call fcn.004010f0
add esp, 4
mov dword [esp + 0x5c], 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
push eax
mov dword [esp + 0x54], 6
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x3c], 0x404b90
mov dword [esp + 0x5c], str.Poker
mov dword [esp + 0x58], 0
mov dword [esp + 0x38], 3
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push esi
push 0
push 0
push 0x3e8
push 0x640
push 0xa
push 0x96
push 0xca0000
push str.PokerGame
push str.Poker
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push 5
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
xorps xmm0, xmm0
mov dword [esp + 0x78], 0
movaps xmmword [esp + 0x60], xmm0
movq qword [esp + 0x70], xmm0
nop dword [eax]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x405122
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x405421
cmp dword [0x455bb8], 0
je 0x405421
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x457f10]
cmp eax, dword [ecx + 4]
jle 0x40517f
push 0x457f10
call fcn.00407a00
add esp, 4
cmp dword [0x457f10], 0xffffffff
jne 0x40517f
push esi
mov ecx, 0x457398
call fcn.004014b0
push 0x4403a0
call fcn.00408040
add esp, 4
push 0x457f10
call fcn.004079b0
add esp, 4
push ecx
call fcn.00402a80
xor edi, edi
cmp dword [0x455bac], 1
je 0x405247
xor esi, esi
sub esp, 0xc
push esi
call fcn.00402fb0
inc esi
cmp esi, 0x34
jb 0x405196
push ecx
call fcn.00403060
push 0x45079c
call fcn.004010f0
xor ecx, ecx
mov dword [esp + 0xc], 4
add esp, 4
mov dword [esp + 0xc], ecx
add edi, 0x34
mov esi, 0x455bcc
mov dword [esp + 0x10], edi
mov edi, 0xd
cmp dword [esi + 0x14], 0x10
jb 0x4051e1
mov eax, dword [esi]
jmp 0x4051e3
mov eax, esi
push eax
lea eax, [ecx + 1]
push eax
push str.player_d:_s_n
call fcn.004010f0
add esp, 0xc
mov ecx, 0x457398
push 0x455bc8
call fcn.004038e0
mov ecx, dword [esp + 0xc]
add esi, 0x1c
sub edi, 1
jne 0x4051d7
push 0x45079c
call fcn.004010f0
mov ecx, dword [esp + 0x10]
add esp, 4
inc ecx
sub dword [esp + 8], 1
mov dword [esp + 0xc], ecx
jne 0x4051d2
mov edi, dword [esp + 0x10]
cmp edi, 0x34
je 0x40537b
cmp dword [0x455bac], 1
jne 0x405194
mov eax, dword [0x4573a8]
mov dword [esp + 8], eax
xor esi, esi
mov edi, 0xd
nop word [eax + eax]
lea ecx, [esi + 0x45617c]
lea eax, [esi + 0x455bc8]
cmp ecx, eax
je 0x405291
cmp dword [esi + 0x455be0], 0x10
lea eax, [esi + 0x455bcc]
jb 0x405285
mov eax, dword [esi + 0x455bcc]
push dword [esi + 0x455bdc]
push eax
call fcn.00404700
add esi, 0x1c
sub edi, 1
jne 0x405260
cmp esi, 0x5b0
jb 0x405252
cmp byte [0x456740], 0
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x14]
mov dword [0x456178], eax
jne 0x4052cd
push edi
push 0x456178
push 0xf
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [0x456740], 1
cmp dword [0x456730], 0
jne 0x405421
xor eax, eax
mov ecx, 0x455bcc
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
nop dword [eax]
xor eax, eax
mov edi, ecx
mov dword [esp + 8], eax
nop dword [eax + eax]
cmp dword [0x457400], 0x10
mov ecx, 0x4573ec
mov edx, edi
cmovae ecx, dword [0x4573ec]
cmp dword [edi + 0x14], 0x10
jb 0x40531d
mov edx, dword [edi]
mov esi, dword [edi + 0x10]
cmp esi, dword [0x4573fc]
jne 0x4053af
sub esi, 4
jb 0x405342
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x405347
add edx, 4
add ecx, 4
sub esi, 4
jae 0x405331
cmp esi, 0xfffffffc
je 0x4053a1
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x405374
cmp esi, 0xfffffffd
je 0x4053a1
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x405374
cmp esi, 0xfffffffe
je 0x4053a1
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x405374
cmp esi, 0xffffffff
je 0x4053a1
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x4053a1
sbb eax, eax
or eax, 1
jmp 0x4053a3
push str.__Dealing_is_completed_n
call fcn.004010f0
mov eax, dword [0x4573a8]
add esp, 4
mov dword [0x455bac], 1
mov dword [0x455bbc], eax
jmp 0x40524c
xor eax, eax
test eax, eax
je 0x40544e
mov eax, dword [esp + 8]
inc eax
add edi, 0x1c
mov dword [esp + 8], eax
cmp eax, 0xd
jb 0x405300
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add edx, 0x16c
inc dword [esp + 0xc]
add ecx, 0x16c
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
cmp edx, 0x5b0
jb 0x4052f0
or eax, 0xffffffff
mov dword [0x4548e4], eax
inc eax
push eax
push 0x450a78
call fcn.004010f0
mov esi, dword [esp + 0x1c]
add esp, 8
mov dword [0x456730], 1
push 0x405460
push 0x14
push 2
push esi
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [esp + 0x64], 0x12
jne 0x4050f0
push dword [esp + 0x1c]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov ecx, dword [esp + 0xdc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004075d0
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0xc]
jmp 0x4053ef