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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a808d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
push esi
push edi
mov eax, dword [0x4da018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x14], eax
call fcn.00466650
push 1
push 0x100
lea ecx, [ebp - 0x1c]
call fcn.0044e760
mov esi, eax
lea edx, [edi + 0x1c]
lea ecx, [esi + 4]
cmp edx, ecx
je 0x4663f1
mov eax, dword [ecx]
mov dword [ecx], 0
mov ecx, dword [edx]
mov dword [edx], eax
test ecx, ecx
je 0x4663f1
push 1
push ecx
call fcn.00489239
add esp, 8
mov eax, dword [esi]
mov dword [edi + 0x18], eax
mov dword [esi], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x46640e
push 1
push eax
call fcn.00489239
add esp, 8
cmp dword [edi + 0x1c], 0
jne 0x466418
xor eax, eax
jmp 0x46641b
mov eax, dword [edi + 0x18]
push eax
push dword [ebp - 0x14]
push dword [edi + 0x1c]
call fcn.0048abe0
mov ecx, dword [edi + 0x1c]
add esp, 0xc
mov dword [ebp - 0x14], ecx
cmp dword [ecx], 0x44414548
jne 0x46660b
mov eax, dword [ecx + 4]
mov dword [edi + 0x20], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x24], eax
movzx eax, byte [ecx + 0xc]
and al, 0xf
mov byte [edi + 0x28], al
movzx eax, byte [ecx + 0xc]
shr al, 4
xor esi, esi
mov byte [edi + 0x29], al
movzx eax, byte [ecx + 0xd]
mov byte [edi + 0x2a], al
movzx eax, byte [ecx + 0xe]
mov byte [edi + 0x2b], al
nop dword [eax + eax]
mov edx, esi
mov eax, 1
and edx, 7
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
mov ecx, dword [ebp - 0x14]
test byte [edx + ecx + 0xf], al
je 0x4664ad
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x2c]
mov dword [ebp - 0x18], esi
cmp eax, dword [ecx + 8]
je 0x4664a3
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x4664ad
lea edx, [ebp - 0x18]
push edx
push eax
call fcn.004626e0
inc esi
cmp esi, 8
jb 0x466470
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
lea esi, [edx + 0x2f]
mov ecx, dword [edx + 0x14]
mov dword [edi + 0x3c], ecx
xor ecx, ecx
mov dword [edi + 0x38], eax
mov eax, dword [edx + 0x18]
mov dword [edi + 0x40], eax
nop dword [eax]
mov al, byte [esi]
lea esi, [esi - 1]
mov byte [edi + ecx + 0x44], al
inc ecx
cmp ecx, 0x10
jb 0x4664d0
mov eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x34]
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], ecx
mov eax, dword [edx + 0x38]
mov ecx, dword [edx + 0x3c]
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], ecx
movups xmm0, xmmword [edx + 0x40]
movups xmmword [edi + 0x68], xmm0
movups xmm0, xmmword [edx + 0x50]
movups xmmword [edi + 0x78], xmm0
movups xmm0, xmmword [edx + 0x60]
movups xmmword [edi + 0x88], xmm0
movups xmm0, xmmword [edx + 0x70]
movups xmmword [edi + 0x98], xmm0
mov eax, dword [edx + 0x80]
mov dword [edi + 0xa8], eax
mov eax, dword [edx + 0x84]
mov dword [edi + 0xac], eax
mov eax, dword [edx + 0x88]
mov dword [edi + 0xb0], eax
mov eax, dword [edx + 0x8c]
mov dword [edi + 0xb4], eax
mov eax, dword [edx + 0x90]
mov ecx, dword [edx + 0x94]
mov dword [edi + 0xb8], eax
mov dword [edi + 0xbc], ecx
mov eax, dword [edx + 0x98]
mov dword [edi + 0xc0], eax
mov eax, dword [edx + 0x9c]
mov dword [edi + 0xc4], eax
mov eax, dword [edx + 0xa0]
mov dword [edi + 0xc8], eax
mov eax, dword [edx + 0xa4]
mov dword [edi + 0xcc], eax
mov eax, dword [edx + 0xa8]
mov dword [edi + 0xd0], eax
mov eax, dword [edx + 0xac]
mov dword [edi + 0xd4], eax
mov eax, dword [edx + 0xb0]
mov dword [edi + 0xd8], eax
mov al, byte [edx + 0xb4]
mov byte [edi + 0xdc], al
mov eax, dword [edx + 0xb8]
mov ecx, dword [edx + 0xbc]
mov dword [edi + 0xdd], eax
mov dword [edi + 0xe1], ecx
mov eax, dword [edx + 0xc0]
mov ecx, dword [edx + 0xc4]
mov dword [edi + 0xe8], eax
mov dword [edi + 0xec], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push str.GameCardImage_header_corrupt
lea ecx, [ebp - 0x34]
call fcn.00403040
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 1
push eax
push edi
lea ecx, [ebp - 0x90]
call fcn.00433f80
push 0x4d8ce0
lea eax, [ebp - 0x90]
push eax
call fcn.0048ab6b
int3