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

Disassembly:
push 0xffffffffffffffff
push 0x563a90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0040138e
push eax
mov dword [esp + 0x50], 0
call fcn.00503f50
mov ebx, dword [esp + 0x1c]
add esp, 4
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x4c], 0xffffffff
test ebx, ebx
je 0x50496e
push 0
lea ecx, [esp + 0x14]
call fcn.0052ecea
mov eax, dword [ebx + 4]
test eax, eax
je 0x50494e
cmp eax, 0xffffffff
jae 0x50494e
dec eax
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
neg edi
sbb edi, edi
lea ecx, [esp + 0x10]
not edi
call fcn.0052ed12
and edi, ebx
je 0x50496e
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.00503980
mov ebx, dword [esp + 0x6c]
mov al, byte [ebx]
mov dword [esp + 0x4c], 1
cmp al, 0x2b
je 0x5049b3
cmp al, 0x2d
je 0x5049b3
cmp al, 0x30
jne 0x5049a9
mov al, byte [ebx + 1]
cmp al, 0x78
je 0x50499f
cmp al, 0x58
jne 0x5049a9
mov dword [esp + 0x10], 2
jmp 0x5049bb
mov dword [esp + 0x10], 0
jmp 0x5049bb
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov eax, edx
cmp ecx, 0x10
jae 0x5049ce
lea eax, [esp + 0x28]
cmp byte [eax], 0x7f
je 0x504a61
mov eax, edx
cmp ecx, 0x10
jae 0x5049e2
lea eax, [esp + 0x28]
cmp byte [eax], 0
jle 0x504a61
cmp ecx, 0x10
jae 0x5049f0
lea edx, [esp + 0x28]
mov ebp, dword [esp + 0x70]
mov eax, edx
mov al, byte [eax]
mov dword [esp + 0x6c], edx
mov esi, ebp
cmp al, 0x7f
je 0x504a46
test al, al
jle 0x504a46
mov ecx, esi
sub ecx, dword [esp + 0x10]
movsx eax, al
cmp eax, ecx
jae 0x504a46
sub esi, eax
mov eax, ebp
sub eax, esi
inc eax
push eax
lea edi, [esi + ebx]
push edi
push eax
lea eax, [esi + ebx + 1]
push eax
call fcn.00537ab6
mov eax, dword [esp + 0x7c]
add esp, 0x10
mov byte [edi], 0
inc ebp
cmp byte [eax + 1], 0
jle 0x504a40
inc eax
mov dword [esp + 0x6c], eax
mov al, byte [eax]
cmp al, 0x7f
jne 0x504a02
mov esi, dword [esp + 0x64]
cmp dword [esi + 0x24], 0
mov edi, dword [esi + 0x20]
jl 0x504a67
jg 0x504a59
test edi, edi
je 0x504a67
cmp edi, ebp
jbe 0x504a67
sub edi, ebp
jmp 0x504a69
mov ebp, dword [esp + 0x70]
jmp 0x504a4a
xor edi, edi
mov eax, dword [esi + 0x14]
mov esi, dword [esp + 0x54]
and eax, 0x1c0
cmp eax, 0x40
je 0x504b0a
mov edx, dword [esp + 0x60]
cmp eax, 0x100
mov eax, dword [esp + 0x5c]
je 0x504ab2
mov ecx, dword [esp + 0x68]
push edi
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.00503600
mov edx, dword [eax]
mov dword [esp + 0x74], edx
mov eax, dword [eax + 4]
add esp, 0x18
mov dword [esp + 0x60], eax
jmp 0x504b08
mov ecx, dword [esp + 0x10]
push ecx
push ebx
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.00503670
mov edx, dword [eax]
mov dword [esp + 0x74], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x28]
push edi
push edx
mov edx, dword [eax]
add ebx, ecx
sub ebp, ecx
mov ecx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x48]
push eax
push esi
call fcn.00503600
mov ecx, dword [eax]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 4]
add esp, 0x30
mov dword [esp + 0x60], edx
xor edi, edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov byte [esp + 0x6c], al
mov eax, dword [esp + 0x6c]
push eax
push ebp
push ebx
push ecx
push edx
lea eax, [esp + 0x34]
push eax
push esi
call fcn.005036e0
mov ecx, dword [eax]
mov edx, dword [esp + 0x80]
push edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x7c], ecx
mov eax, dword [eax + 4]
xor ebx, ebx
mov dword [edx + 0x20], ebx
mov dword [edx + 0x24], ebx
mov edx, dword [esp + 0x88]
push edx
push eax
push ecx
push edi
push esi
mov dword [esp + 0x94], eax
call fcn.00503600
add esp, 0x34
cmp dword [esp + 0x3c], 0x10
jb 0x504b81
mov eax, dword [esp + 0x28]
push eax
call fcn.00530309
add esp, 4
mov ecx, dword [esp + 0x44]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret