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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558697
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x574f24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [0x590144]
and eax, 1
jne 0x5002c9
mov ecx, dword [0x590144]
or ecx, 1
mov dword [0x590144], ecx
mov dword [ebp - 4], 1
mov ecx, 0x590128
call fcn.004b7bd0
push 0x55e4e0
call fcn.0051079a
add esp, 4
mov byte [ebp - 4], 0
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x50058e
mov ecx, 0x590128
call fcn.005005e0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x64]
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 0x30]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0x78]
sub eax, dword [edx + 0x10]
xor ecx, eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 4]
xor ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
sub eax, dword [edx + 0x70]
xor ecx, eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x3c]
mov edx, dword [ebp + 0xc]
add eax, dword [edx]
xor ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0x88]
sub eax, dword [edx + 0x14]
xor ecx, eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x20]
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 0x58]
xor ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0x68]
sub eax, dword [edx + 0x38]
xor ecx, eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x50]
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 0x74]
xor ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
sub eax, dword [edx + 0x34]
xor ecx, eax
push ecx
call fcn.005165cf
add esp, 4
mov dword [ebp - 0x18], 0
jmp 0x500386
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 8
jge 0x50058e
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 7
ja case.default.0x5003a3
mov eax, dword [ebp - 0x20]
jmp dword [eax*4 + 0x5005c0]
call fcn.005165e1
mov ecx, dword [ebp + 0xc]
xor eax, dword [ecx + 0x64]
xor edx, edx
mov cl, 0x20
call fcn.005166d0
mov esi, eax
mov edi, edx
call fcn.005165e1
mov edx, dword [ebp + 0xc]
xor eax, dword [edx + 0x30]
xor ecx, ecx
or esi, eax
or edi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
jmp case.default.0x5003a3
call fcn.005165e1
mov edx, dword [ebp + 0xc]
xor eax, dword [edx + 0x78]
xor edx, edx
mov cl, 0x20
call fcn.005166d0
mov esi, eax
mov edi, edx
call fcn.005165e1
mov ecx, dword [ebp + 0xc]
xor eax, dword [ecx + 0x10]
xor edx, edx
or esi, eax
or edi, edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
jmp case.default.0x5003a3
call fcn.005165e1
mov ecx, dword [ebp + 0xc]
xor eax, dword [ecx + 0x1c]
xor edx, edx
mov cl, 0x20
call fcn.005166d0
mov esi, eax
mov edi, edx
call fcn.005165e1
mov edx, dword [ebp + 0xc]
xor eax, dword [edx + 4]
xor ecx, ecx
or esi, eax
or edi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
jmp case.default.0x5003a3
call fcn.005165e1
mov edx, dword [ebp + 0xc]
xor eax, dword [edx + 0x18]
xor edx, edx
mov cl, 0x20
call fcn.005166d0
mov esi, eax
mov edi, edx
call fcn.005165e1
mov ecx, dword [ebp + 0xc]
xor eax, dword [ecx + 0x70]
xor edx, edx
or esi, eax
or edi, edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
jmp case.default.0x5003a3
call fcn.005165e1
mov ecx, dword [ebp + 0xc]
xor eax, dword [ecx + 0x3c]
xor edx, edx
mov cl, 0x20
call fcn.005166d0
mov esi, eax
mov edi, edx
call fcn.005165e1
mov edx, dword [ebp + 0xc]
xor eax, dword [edx]
xor ecx, ecx
or esi, eax
or edi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
jmp case.default.0x5003a3
call fcn.005165e1
mov edx, dword [ebp + 0xc]
xor eax, dword [edx + 0x88]
xor edx, edx
mov cl, 0x20
call fcn.005166d0
mov esi, eax
mov edi, edx
call fcn.005165e1
mov ecx, dword [ebp + 0xc]
xor eax, dword [ecx + 0x14]
xor edx, edx
or esi, eax
or edi, edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
jmp case.default.0x5003a3
call fcn.005165e1
mov ecx, dword [ebp + 0xc]
xor eax, dword [ecx + 0x20]
xor edx, edx
mov cl, 0x20
call fcn.005166d0
mov esi, eax
mov edi, edx
call fcn.005165e1
mov edx, dword [ebp + 0xc]
xor eax, dword [edx + 0x58]
xor ecx, ecx
or esi, eax
or edi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
jmp case.default.0x5003a3
call fcn.005165e1
mov edx, dword [ebp + 0xc]
xor eax, dword [edx + 0x68]
xor edx, edx
mov cl, 0x20
call fcn.005166d0
mov esi, eax
mov edi, edx
call fcn.005165e1
mov ecx, dword [ebp + 0xc]
xor eax, dword [ecx + 0x38]
xor edx, edx
or esi, eax
or edi, edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
push 0
push 0x24
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00516610
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jg 0x50056c
jl 0x500566
cmp dword [ebp - 0x14], 0xa
jae 0x50056c
mov byte [ebp - 0x21], 0x30
jmp 0x500570
mov byte [ebp - 0x21], 0x41
movsx eax, byte [ebp - 0x21]
cdq
add eax, dword [ebp - 0x14]
adc edx, dword [ebp - 0x10]
movzx edx, al
push edx
mov ecx, 0x590128
call fcn.004b7d70
jmp 0x50037d
push 0x590128
mov ecx, dword [ebp + 8]
call fcn.004b86f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
or eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret