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

Disassembly:
mov eax, dword [0x8b0bd8]
sub esp, 0xfc
push eax
lea ecx, [esp + 0xc]
call fcn.00418c70
lea ecx, [esp + 4]
push ecx
push 1
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.005b7360
mov ecx, dword [str.rewards]
add esp, 0xc
push eax
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x28]
call fcn.005bdce0
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x40]
cmp eax, ecx
je 0x571979
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x34], 0x84760c
je 0x57199c
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [0x8b0b5c]
mov ecx, dword [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x44], 1
call fcn.00570e60
mov ecx, dword [esp + 0x14]
call fcn.005b6c70
mov ecx, dword [esp + 0x114]
mov word [ecx], ax
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
movsx eax, ax
xor ebx, ebx
push ebx
push 0x10
lea eax, [eax + eax*2]
push ebx
shl eax, 3
push eax
push 0x847a97
call dword [edx + 0x28]
mov ecx, dword [esp + 0x110]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x58]
mov edx, dword [eax + 0x4c]
lea ecx, [eax + 0x5c]
push ecx
lea edi, [esi + edx*4]
mov edx, dword [eax + 4]
push edx
mov ebp, eax
push esi
add eax, 8
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
call fcn.005b86b0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x58]
mov ecx, dword [eax + 0x4c]
lea edx, [eax + 0x5c]
push edx
mov edx, dword [eax + 4]
lea esi, [edi + ecx*4]
push edx
mov ecx, esi
mov ebp, eax
push ecx
add eax, 8
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], esi
call fcn.005b86b0
mov edx, dword [esp + 0x2c]
mov eax, esi
cmp edx, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x50]
setne byte [esp + 0x13]
cmp eax, ebx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
je 0x571ab3
dec dword [eax]
cmp dword [eax], ebx
mov esi, eax
jne 0x571ab3
cmp esi, ebx
je 0x571ab3
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
cmp byte [esp + 0x13], bl
je 0x571c6b
mov eax, dword [esp + 0x110]
mov esi, dword [eax]
add esi, dword [esp + 0x38]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov dword [esi + 0x10], ebx
mov word [esi + 0xe], bx
mov dword [esi + 0x14], ebx
xor ecx, ecx
lea edi, [esi + 4]
mov edx, edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov word [edx + 8], cx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.005b84a0
mov ecx, dword [str.name]
push ecx
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x20]
call fcn.0047ad20
mov eax, dword [eax + 0x48]
push 9
push eax
push edi
call fcn.0081d420
mov eax, dword [esp + 0xc8]
lea ecx, [esp + 0x88]
add esp, 0xc
cmp eax, ecx
je 0x571b3c
push eax
call fcn.0079a005
add esp, 4
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
call fcn.005b84a0
mov eax, dword [0x8b0b5c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00419060
mov byte [esi], al
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.005b84a0
mov edx, dword [str.type]
push edx
lea ecx, [esp + 0x1c]
call fcn.00419060
mov byte [esi + 1], al
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.005b84a0
mov ecx, dword [str.label]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00419060
mov dword [esi + 0x10], eax
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
call fcn.005b84a0
mov eax, dword [str.value]
push eax
lea ecx, [esp + 0x1c]
call fcn.00419060
mov word [esi + 0xe], ax
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.005b84a0
mov edx, dword [str.triggers]
push edx
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x20]
call fcn.0047ad20
mov eax, dword [eax + 0x48]
push eax
call fcn.00574c60
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x10c]
lea ecx, [esp + 0xcc]
add esp, 4
cmp eax, ecx
je 0x571c0e
push eax
call fcn.0079a005
add esp, 4
mov byte [esi + 3], bl
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
call fcn.005b84a0
mov eax, dword [str.buyable]
push eax
lea ecx, [esp + 0x1c]
call fcn.00419060
test eax, eax
je 0x571c3f
mov eax, dword [esp + 0x118]
mov byte [esi + 2], 1
jmp 0x571c46
mov eax, dword [esp + 0x11c]
inc word [eax]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
lea ecx, [eax + edx*4]
mov eax, dword [esp + 0x38]
add eax, 0x18
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], eax
jmp 0x571a40
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x571c8f
dec dword [eax]
cmp dword [eax], ebx
mov esi, eax
jne 0x571c8f
cmp esi, ebx
je 0x571c8f
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x571cde
dec dword [eax]
cmp dword [eax], ebx
mov edi, eax
jne 0x571cde
cmp edi, ebx
je 0x571cde
mov esi, dword [edi + 0x5c]
cmp esi, ebx
je 0x571cc2
dec dword [esi]
jne 0x571cc2
cmp esi, ebx
je 0x571cc2
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [edi + 0x58]
lea edx, [edi + 0x54]
cmp eax, edx
je 0x571cd5
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret