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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c331
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x55c640]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x2c], edi
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x30], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c], 1
test edx, edx
je 0x4141a7
mov eax, dword [edx + 0x3c]
mov ebx, dword [eax + edx + 0x78]
mov eax, dword [ebx + edx + 0x20]
add ebx, edx
add eax, edx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x24]
mov esi, dword [ebx + 0x14]
add eax, edx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x1c]
add eax, edx
cmp dword [ebx + 0x18], esi
mov dword [ebp - 0x50], eax
cmova esi, dword [ebx + 0x18]
xor ecx, ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], ecx
test esi, esi
je 0x4141a7
xor eax, eax
lea ebx, [ebx]
cmp eax, dword [ebx + 0x14]
jae 0x414066
mov ecx, dword [ebp - 0x48]
mov esi, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x3c]
add esi, edx
movzx ebx, word [ecx + eax*2]
jmp 0x41406b
xor esi, esi
movzx ebx, cx
mov eax, 0x1388
cmp bx, ax
ja 0x4141a7
mov ecx, esi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414080
sub ecx, edx
je 0x4141a7
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], al
cmp byte [esi], al
jne 0x4140a8
xor eax, eax
jmp 0x4140b9
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4140b0
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004511b0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x18], 1
jb 0x4141c7
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov edx, 0x540cdc
mov byte [eax + 1], 0
mov eax, 1
cmp dword [ebp - 0x14], 0x10
mov edi, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp edi, eax
cmovb eax, edi
push eax
call fcn.00406640
add esp, 4
test eax, eax
jne 0x414128
cmp edi, 1
jae 0x41411e
or eax, 0xffffffff
jmp 0x414126
xor eax, eax
cmp edi, 1
setne al
test eax, eax
sete al
test al, al
jne 0x414193
mov ecx, dword [ebp - 0x50]
movzx eax, bx
push 8
mov edi, dword [ecx + eax*4]
add edi, dword [ebp - 0x30]
call fcn.00485891
add esp, 4
test eax, eax
je 0x414150
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x414152
xor eax, eax
mov edi, dword [ebp - 0x2c]
mov ecx, edi
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00450820
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
jb 0x414178
push dword [ebp - 0x28]
call fcn.00485250
add esp, 4
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
inc ecx
mov ebx, dword [ebp - 0x44]
movzx eax, cx
mov dword [ebp - 0x34], ecx
cmp eax, dword [ebp - 0x40]
jb 0x414050
jmp 0x4141a7
cmp dword [ebp - 0x14], 0x10
jb 0x4141a4
push dword [ebp - 0x28]
call fcn.00485250
add esp, 4
mov edi, dword [ebp - 0x2c]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484516
mov esp, ebp
pop ebp
ret 8
push str.invalid_string_position
call fcn.0046c963
int3