Function at 0x51c3e5
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.0050fac0
xor ebx, ebx
push ebx
push 0x583690
push str.._Resource_UniqueItemOptionList.bin
lea ecx, [esp + 0x14]
call fcn.00510850
lea ecx, [esp + 8]
test eax, eax
jne 0x51c42d
call fcn.0050ffd0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x558]
xor ecx, esp
call fcn.00565862
add esp, 0x55c
ret
call fcn.0050fc40
test eax, eax
jne 0x51c5e3
push edi
lea edi, [esi + 0x4c]
mov edi, edi
push 0x84
call fcn.00565941
add esp, 4
cmp eax, ebx
je 0x51c4ba
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 0x51c4bc
xor esi, esi
lea ecx, [esp + 0xc]
call fcn.00510aa0
push 0x21
lea ecx, [esp + 0x10]
mov dword [esi], eax
call fcn.00510a50
push eax
lea eax, [esi + 4]
push eax
call fcn.00514f80
add esp, 0xc
push 0x21
lea ecx, [esp + 0x10]
call fcn.00510a50
push eax
lea ecx, [esi + 0x24]
push ecx
call fcn.00514f80
add esp, 0xc
lea ecx, [esp + 0xc]
call fcn.00510ac0
lea ecx, [esp + 0xc]
mov byte [esi + 0x44], al
call fcn.00510ac0
lea ecx, [esp + 0xc]
mov byte [esi + 0x45], al
call fcn.00510aa0
lea ecx, [esp + 0xc]
mov dword [esi + 0x48], eax
call fcn.00510a60
lea ecx, [esp + 0xc]
mov dword [esi + 0x4c], eax
call fcn.00510a60
lea ecx, [esp + 0xc]
mov dword [esi + 0x50], eax
call fcn.00510a60
lea ecx, [esp + 0xc]
mov dword [esi + 0x54], eax
call fcn.00510a60
lea ecx, [esp + 0xc]
mov dword [esi + 0x58], eax
call fcn.00510a60
lea ecx, [esp + 0xc]
mov dword [esi + 0x5c], eax
call fcn.00510a60
lea ecx, [esp + 0xc]
mov dword [esi + 0x60], eax
call fcn.00510a60
lea ecx, [esp + 0xc]
mov dword [esi + 0x64], eax
call fcn.00510a60
lea ecx, [esp + 0xc]
mov dword [esi + 0x68], eax
call fcn.00510a60
lea ecx, [esp + 0xc]
mov dword [esi + 0x6c], eax
call fcn.00510a60
lea ecx, [esp + 0xc]
mov dword [esi + 0x70], eax
call fcn.00510a60
lea ecx, [esp + 0xc]
mov dword [esi + 0x74], eax
call fcn.00510a60
lea ecx, [esp + 0xc]
mov dword [esi + 0x78], eax
call fcn.00510a60
lea ecx, [esp + 0xc]
mov dword [esi + 0x7c], eax
call fcn.00510a60
mov edx, dword [esi]
push edx
push esi
mov ecx, edi
mov dword [esi + 0x80], eax
call fcn.004b40a0
lea ecx, [esp + 0xc]
call fcn.0050fc40
test eax, eax
je 0x51c440
pop edi
lea ecx, [esp + 8]
call fcn.0050ffd0
mov ecx, dword [esp + 0x560]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00565862
add esp, 0x55c
ret