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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e61f0
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x14], ebx
je 0x4cd78b
cmp dword [edi + 0x1c], ebx
je 0x4cd78b
cmp dword [edi + 0xd8], ebx
je 0x4cd78b
lea eax, [esp + 0x1c]
lea ecx, [edi + 0xbc]
push eax
call fcn.00439f50
lea ebp, [ebx + 0xf]
jmp 0x4cd560
mov eax, dword [edi + 0xd4]
mov esi, dword [edi + 0xd8]
add esi, eax
cmp eax, esi
jbe 0x4cd577
call fcn.00579468
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0xbc]
cmp ecx, ebx
je 0x4cd589
cmp ecx, eax
je 0x4cd58e
call fcn.00579468
cmp dword [esp + 0x20], esi
je 0x4cd76f
push 9
push str.olditemid
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.00436930
lea ecx, [esp + 0x1c]
mov dword [esp + 0xb8], ebx
call fcn.00437650
mov ecx, eax
call fcn.0044d580
push eax
lea ecx, [esp + 0x78]
call fcn.00448cb0
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0xbc], 1
call fcn.004480d0
mov ecx, eax
call fcn.00438a30
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x74]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov byte [esp + 0xb8], bl
call fcn.004434f0
or esi, 0xffffffff
cmp dword [esp + 0x70], 0x10
mov dword [esp + 0xb8], esi
jb 0x4cd62d
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00506f70
add esp, 4
push 9
push str.repitemid
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00436930
lea ecx, [esp + 0x1c]
mov dword [esp + 0xb8], 2
call fcn.00437650
mov ecx, eax
call fcn.0044d580
push eax
lea ecx, [esp + 0x94]
call fcn.00448cb0
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x94]
mov byte [esp + 0xbc], 3
call fcn.004480d0
mov ecx, eax
call fcn.00438a30
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x38], edx
mov byte [esp + 0xb8], 2
call fcn.004434f0
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0xb8], esi
jb 0x4cd6cd
mov eax, dword [esp + 0x40]
push eax
call fcn.00506f70
add esp, 4
fld qword [esp + 0x34]
mov dword [esp + 0x54], ebp
fnstcw word [esp + 0x1a]
mov dword [esp + 0x50], ebx
movzx eax, word [esp + 0x1a]
or eax, 0xc00
mov dword [esp + 0x24], eax
mov byte [esp + 0x40], bl
fldcw word [esp + 0x24]
fistp qword [esp + 0x24]
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [edi + 0x10]
fldcw word [esp + 0x1e]
fld qword [esp + 0x30]
fnstcw word [esp + 0x1e]
movzx eax, word [esp + 0x1e]
or eax, 0xc00
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x1c]
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [edi + 0x14]
fldcw word [esp + 0x22]
push eax
mov eax, dword [edi + 8]
push ecx
push edx
push eax
mov ecx, edi
call fcn.004c8c20
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4cd769
call fcn.00579468
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
cmp dword [esp + 0x20], ecx
jb 0x4cd760
call fcn.00579468
inc dword [esp + 0x20]
jmp 0x4cd560
mov eax, dword [eax]
mov ecx, eax
jmp 0x4cd74f
mov eax, 1
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret