Function at 0x4da220
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 0x5a2213
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x5e000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov edi, dword [ebx + 8]
push 0
push 0
push dword [ebx + 0x10]
push dword [ebx + 0x14]
push dword [ebx + 0xc]
push edi
call fcn.00406860
mov dword [ebp - 4], 0
lea ecx, [esi + 0x60]
mov dword [esi], vtable.CPNAReader.0
mov edx, edi
mov dword [esi + 0x34], 0
xor eax, eax
mov dword [esi + 0x4c], 0
mov dword [ecx], 0
mov word [ecx], ax
lea eax, [edx + 2]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov dword [ebp - 0x20], eax
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4da2c0
sub edx, dword [ebp - 0x20]
sar edx, 1
push edx
push edi
call fcn.004039b0
mov edi, dword [ebx + 0xc]
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 1
mov edx, edi
xor eax, eax
mov dword [ecx], 0
mov word [ecx], ax
mov dword [ecx + 0x10], 0
lea eax, [edx + 2]
mov dword [ecx + 0x14], 7
mov dword [ebp - 0x20], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4da302
sub edx, dword [ebp - 0x20]
sar edx, 1
push edx
push edi
call fcn.004039b0
mov byte [ebp - 4], 2
cmp dword [esi + 0x2c], 0
jne 0x4da335
cmp dword [esi + 0x28], 0
jne 0x4da335
mov dword [esi + 0x34], 0xffffffff
jmp 0x4da636
lea eax, [esi + 0x38]
mov byte [ebp - 4], 3
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4da3de
mov edi, dword [0x5a6818]
push ecx
push 1
push 4
push 4
push eax
call edi
mov eax, dword [esi + 0x2c]
add esp, 0x14
test eax, eax
je 0x4da3db
push eax
push 1
push 4
lea eax, [ebp - 0x20]
push 4
push eax
call edi
mov eax, dword [ebp - 0x20]
add esp, 0x14
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4da3db
push eax
push 1
push 4
lea eax, [ebp - 0x20]
push 4
push eax
call edi
mov eax, dword [ebp - 0x20]
add esp, 0x14
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4da3db
push eax
push 1
push 4
lea eax, [ebp - 0x20]
push 4
push eax
call edi
mov eax, dword [ebp - 0x20]
add esp, 0x14
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4da3db
push eax
push 1
push 4
lea eax, [ebp - 0x20]
push 4
push eax
call edi
mov eax, dword [ebp - 0x20]
add esp, 0x14
mov dword [esi + 0x48], eax
lea eax, [esi + 0x38]
mov eax, dword [eax]
cmp eax, 0x53414e50
je 0x4da407
cmp eax, 0x50414e50
je 0x4da407
cmp eax, 0x53415057
je 0x4da400
cmp eax, 0x50415057
jne 0x4da64e
mov ecx, 1
jmp 0x4da409
xor ecx, ecx
mov dword [esi + 0x5c], ecx
cmp eax, 0x53414e50
je 0x4da421
cmp eax, 0x53415057
je 0x4da421
mov eax, 1
jmp 0x4da423
xor eax, eax
mov dword [esi + 0x58], eax
xor ecx, ecx
mov eax, dword [esi + 0x48]
mov edx, 0x30
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0052f8ad
add esp, 4
mov dword [esi + 0x4c], eax
cmp dword [esi + 0x48], 0
mov dword [ebp - 0x20], 0
jle 0x4da5f9
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
nop dword [eax + eax]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x4c]
test eax, eax
je 0x4da5e3
push eax
push 1
push 4
lea eax, [ebp - 0x28]
push 4
push eax
call dword [0x5a6818]
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
mov eax, dword [ebp - 0x28]
mov dword [ecx + edi], eax
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x4c]
test eax, eax
je 0x4da5e3
push eax
push 1
push 4
lea eax, [ebp - 0x2c]
push 4
push eax
call dword [0x5a6818]
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
mov eax, dword [ebp - 0x2c]
mov dword [ecx + edi + 4], eax
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x4c]
test eax, eax
je 0x4da5e3
push eax
push 1
push 4
lea eax, [ebp - 0x30]
push 4
push eax
call dword [0x5a6818]
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
mov eax, dword [ebp - 0x30]
mov dword [ecx + edi + 8], eax
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x4c]
test eax, eax
je 0x4da5e3
push eax
push 1
push 4
lea eax, [ebp - 0x34]
push 4
push eax
call dword [0x5a6818]
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
mov eax, dword [ebp - 0x34]
mov dword [ecx + edi + 0xc], eax
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x4c]
test eax, eax
je 0x4da5e3
push eax
push 1
push 4
lea eax, [ebp - 0x38]
push 4
push eax
call dword [0x5a6818]
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
mov eax, dword [ebp - 0x38]
mov dword [ecx + edi + 0x10], eax
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x4c]
test eax, eax
je 0x4da5e3
push eax
push 1
push 4
lea eax, [ebp - 0x3c]
push 4
push eax
call dword [0x5a6818]
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
mov eax, dword [ebp - 0x3c]
mov dword [ecx + edi + 0x14], eax
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x4c]
test eax, eax
je 0x4da5e3
push eax
push 1
push 4
lea eax, [ebp - 0x40]
push 4
push eax
call dword [0x5a6818]
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
mov eax, dword [ebp - 0x40]
mov dword [ecx + edi + 0x18], eax
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x4c]
test eax, eax
je 0x4da5e3
push eax
push 1
push 8
lea eax, [ebp - 0x50]
push 8
push eax
call dword [0x5a6818]
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
movsd xmm0, qword [ebp - 0x50]
movsd qword [ecx + edi + 0x20], xmm0
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x4c]
test eax, eax
je 0x4da5e3
push eax
push 1
push 4
lea eax, [ebp - 0x44]
push 4
push eax
call dword [0x5a6818]
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
mov eax, dword [ebp - 0x44]
mov dword [ecx + edi + 0x28], eax
mov edx, dword [ebp - 0x20]
add ecx, 0x30
inc edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
cmp edx, dword [esi + 0x48]
jl 0x4da460
lea eax, [esi + 0x50]
push eax
push dword [esi + 0x2c]
call dword [0x5a6838]
add esp, 8
jmp 0x4da636
mov eax, esi
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 0x10
push 0x5da778
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xfffffffe
push eax
call fcn.00582b45
int3