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

Disassembly:
sub esp, 0x55c
mov eax, dword [0x6a1068]
xor eax, esp
mov dword [esp + 0x558], eax
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.0050fe10
xor ebx, ebx
push ebx
push 0x5836b0
push str.._Resource_UniqueItemOptionList.bin
lea ecx, [esp + 0x14]
call fcn.00510ba0
lea ecx, [esp + 8]
test eax, eax
jne 0x51c6fd
call fcn.00510320
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x558]
xor ecx, esp
call fcn.00565a22
add esp, 0x55c
ret
call fcn.0050ff90
test eax, eax
jne 0x51c8b3
push edi
lea edi, [esi + 0x4c]
mov edi, edi
push 0x84
call fcn.00565b01
add esp, 4
cmp eax, ebx
je 0x51c78a
xor ecx, ecx
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov word [eax + 0x44], bx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov dword [eax + 0x54], ebx
mov dword [eax + 0x58], ebx
mov dword [eax + 0x5c], ebx
mov dword [eax + 0x60], ebx
mov dword [eax + 0x64], ebx
mov dword [eax + 0x68], ebx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ebx
mov dword [eax + 0x74], ebx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ebx
mov dword [eax + 0x80], ebx
mov esi, eax
jmp 0x51c78c
xor esi, esi
lea ecx, [esp + 0xc]
call fcn.00510df0
push 0x21
lea ecx, [esp + 0x10]
mov dword [esi], eax
call fcn.00510da0
push eax
lea eax, [esi + 4]
push eax
call fcn.005152d0
add esp, 0xc
push 0x21
lea ecx, [esp + 0x10]
call fcn.00510da0
push eax
lea ecx, [esi + 0x24]
push ecx
call fcn.005152d0
add esp, 0xc
lea ecx, [esp + 0xc]
call fcn.00510e10
lea ecx, [esp + 0xc]
mov byte [esi + 0x44], al
call fcn.00510e10
lea ecx, [esp + 0xc]
mov byte [esi + 0x45], al
call fcn.00510df0
lea ecx, [esp + 0xc]
mov dword [esi + 0x48], eax
call fcn.00510db0
lea ecx, [esp + 0xc]
mov dword [esi + 0x4c], eax
call fcn.00510db0
lea ecx, [esp + 0xc]
mov dword [esi + 0x50], eax
call fcn.00510db0
lea ecx, [esp + 0xc]
mov dword [esi + 0x54], eax
call fcn.00510db0
lea ecx, [esp + 0xc]
mov dword [esi + 0x58], eax
call fcn.00510db0
lea ecx, [esp + 0xc]
mov dword [esi + 0x5c], eax
call fcn.00510db0
lea ecx, [esp + 0xc]
mov dword [esi + 0x60], eax
call fcn.00510db0
lea ecx, [esp + 0xc]
mov dword [esi + 0x64], eax
call fcn.00510db0
lea ecx, [esp + 0xc]
mov dword [esi + 0x68], eax
call fcn.00510db0
lea ecx, [esp + 0xc]
mov dword [esi + 0x6c], eax
call fcn.00510db0
lea ecx, [esp + 0xc]
mov dword [esi + 0x70], eax
call fcn.00510db0
lea ecx, [esp + 0xc]
mov dword [esi + 0x74], eax
call fcn.00510db0
lea ecx, [esp + 0xc]
mov dword [esi + 0x78], eax
call fcn.00510db0
lea ecx, [esp + 0xc]
mov dword [esi + 0x7c], eax
call fcn.00510db0
mov edx, dword [esi]
push edx
push esi
mov ecx, edi
mov dword [esi + 0x80], eax
call fcn.004fd0f0
lea ecx, [esp + 0xc]
call fcn.0050ff90
test eax, eax
je 0x51c710
pop edi
lea ecx, [esp + 8]
call fcn.00510320
mov ecx, dword [esp + 0x560]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00565a22
add esp, 0x55c
ret