Function at 0x40df50
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb4
mov eax, dword [0x45e1ac]
xor eax, esp
mov dword [esp + 0xb0], eax
push esi
push edi
mov edi, dword [0x461020]
push 0x1a0
mov dword [esp + 0x14], edi
call fcn.0043b07e
mov dword [edi + 0x810], eax
push 0x42c
mov dword [eax], 0
call fcn.0043b07e
add esp, 8
test eax, eax
je 0x40dfa0
mov esi, eax
call fcn.00404930
jmp 0x40dfa2
xor eax, eax
mov dword [edi + 0x324], eax
push eax
mov eax, str.Cardcard_hold.pak
call fcn.00404e10
push 0x42c
call fcn.0043b07e
add esp, 4
test eax, eax
je 0x40dfcd
mov esi, eax
call fcn.00404930
jmp 0x40dfcf
xor eax, eax
mov dword [edi + 0x328], eax
push eax
mov eax, str.Card_bk.pak
call fcn.00404e10
push ebx
mov dword [esp + 0x1c], str.clover
mov dword [esp + 0x20], str.diamond
mov dword [esp + 0x24], str.heart
mov dword [esp + 0x28], str.spade
mov dword [esp + 0x44], 0x458ebc
mov dword [esp + 0x48], 0x458ec0
mov dword [esp + 0x4c], 0x458ec4
mov dword [esp + 0x50], 0x458ec8
mov dword [esp + 0x54], 0x458ecc
mov dword [esp + 0x58], 0x458ed0
mov dword [esp + 0x5c], 0x458ed4
mov dword [esp + 0x60], 0x458ed8
mov dword [esp + 0x64], 0x458edc
mov dword [esp + 0x68], 0x458ee0
mov dword [esp + 0x6c], 0x458ee4
mov dword [esp + 0x70], 0x458ee8
mov dword [esp + 0x74], 0x458eec
mov dword [esp + 0x2c], 0x458ef0
mov dword [esp + 0x30], str.loop
mov dword [esp + 0x34], 0x458efc
mov dword [esp + 0x38], str.damage
mov dword [esp + 0x3c], str.broken
mov dword [esp + 0x40], str.loop_v2
mov dword [esp + 0x10], 0
add edi, 0x32c
push ebp
jmp 0x40e0b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + eax*4 + 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + edx*4 + 0x48]
xor ebx, ebx
mov edi, edi
push 0x42c
call fcn.0043b07e
add esp, 4
test eax, eax
je 0x40e0ea
mov esi, eax
call fcn.00404930
jmp 0x40e0ec
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [edi], eax
mov eax, dword [esp + ebx*4 + 0x30]
push eax
push ebp
push ecx
push 0x45814c
lea edx, [esp + 0x90]
push str.Cardcard__s_s__s__s.pak
push edx
call fcn.0043b874
mov esi, dword [edi]
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea ecx, [esp + 0x80]
push ecx
push 4
lea edx, [esi + 0x3e0]
push edx
push eax
mov dword [esi + 0x3cc], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
inc ebx
add edi, 4
cmp ebx, 6
mov dword [esi + 0x424], 0
jl 0x40e0d0
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xd
mov dword [esp + 0x10], eax
jl 0x40e0c4
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 4
mov dword [esp + 0x14], eax
jl 0x40e0b0
push 0x42c
call fcn.0043b07e
add esp, 4
pop ebp
pop ebx
test eax, eax
je 0x40e1ac
mov esi, eax
call fcn.00404930
jmp 0x40e1ae
xor eax, eax
mov esi, dword [esp + 0x10]
mov dword [esi + 0x80c], eax
lea eax, [esp + 0x78]
push str.Cardcard_back_rotation.pak
push eax
call fcn.0043b874
mov ecx, dword [esi + 0x80c]
add esp, 8
push ecx
lea eax, [esp + 0x7c]
call fcn.00404e10
mov edx, dword [esi + 0x80c]
mov dword [esi + 0xc7c], edx
call fcn.0040e210
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
xor ecx, esp
call fcn.0043a7e2
add esp, 0xb4
ret