Function at 0x5100c0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5dbd6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.00558060
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x17c], ebx
call fcn.00558060
mov al, byte [esp + 0x13]
sub esp, 0x10
mov edx, esp
mov edi, 0x619c18
or ecx, 0xffffffff
mov dword [esp + 0x30], esp
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
mov byte [esp + 0x18c], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x619c18
mov ecx, edx
call fcn.004017b0
push ebx
lea ecx, [esp + 0x44]
call fcn.00542e70
movsx dx, byte [0x60e640]
mov cl, byte [ebp + 0x2a]
push edx
mov byte [0x60e642], cl
push 0x60e641
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 2
call fcn.00558600
lea eax, [esp + 0x1c]
lea edx, [esp + 0x14]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00558070
mov ecx, ebp
call fcn.00504f50
cmp ax, bx
jg 0x5101b6
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x18c], 3
mov ecx, esp
mov dword [esp + 0x54], esp
jmp 0x5104a6
push 0xffff
lea eax, [esp + 0x78]
push 0x609488
push eax
call fcn.005bcf3d
push ecx
mov cl, byte [esp + 0x23]
mov edx, esp
lea edi, [esp + 0x84]
xor eax, eax
mov dword [esp + 0x54], esp
mov byte [edx], cl
or ecx, 0xffffffff
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x84]
push ecx
push eax
mov ecx, edx
call fcn.004017b0
sub esp, 0x10
lea edx, [esp + 0x33]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
push 0x60af04
mov byte [esp + 0x1a4], 4
call fcn.00404ee0
sub esp, 0x10
lea eax, [esp + 0x57]
mov ecx, esp
mov dword [esp + 0x88], esp
push eax
push 0x60cf40
mov byte [esp + 0x1b4], 5
call fcn.00404ee0
sub esp, 0x10
lea edx, [esp + 0x6f]
mov ecx, esp
mov dword [esp + 0xb0], esp
push edx
push 0x619c18
mov byte [esp + 0x1c4], 6
call fcn.00404ee0
sub esp, 0x10
mov byte [esp + 0x1cc], 7
mov esi, esp
mov dword [esp + 0x78], esp
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x60e6b8
call fcn.00558100
push esi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x1dc], 8
mov esi, esp
mov dword [esp + 0x78], esp
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push 6
push 0x60e6b0
call fcn.00558100
push esi
call fcn.00560f40
add esp, 8
lea eax, [esp + 0xbc]
mov byte [esp + 0x1dc], 2
push eax
mov ecx, 0x619a58
call fcn.00543d00
mov edx, dword [0x5e5150]
mov cx, word [eax]
push edx
add eax, 4
mov word [esp + 0x34], cx
push ebx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x188], 9
call fcn.004120f0
mov eax, dword [esp + 0x64]
mov byte [esp + 0x17c], 2
cmp eax, ebx
je 0x51032a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x510321
cmp al, 0xff
je 0x510321
dec al
mov byte [ecx], al
jmp 0x51032a
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.00551f50
cmp ax, 2
je 0x5101b6
lea eax, [esp + 0x48]
lea ecx, [esp + 0x30]
push eax
call fcn.00542fb0
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x510363
mov edi, 0x5e514c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x4c]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x5103a9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5103a0
cmp al, 0xff
je 0x5103a0
dec al
mov byte [ecx], al
jmp 0x5103a9
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x74]
mov dword [esp + 0x4c], ebx
push ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.005bd3b2
add esp, 4
cmp ax, bx
jl 0x5103d2
movsx edx, ax
cmp edx, 0xffff
jle 0x51041a
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x18c], 0xa
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x60e6a0
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x18c], 2
call fcn.00543af0
jmp 0x5101b6
mov cl, byte [ebp + 0x2a]
mov dx, ax
sar dx, 0x10
mov byte [0x60e64a], cl
add dl, 3
mov ecx, eax
mov byte [0x60e64f], dl
movsx dx, byte [0x60e648]
sar ecx, 8
sub cl, 0x7e
add al, 3
mov byte [0x60e650], cl
push edx
push 0x60e649
lea ecx, [esp + 0x1c]
mov byte [0x60e651], al
call fcn.00558600
lea eax, [esp + 0x1c]
lea edx, [esp + 0x14]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00558070
mov ecx, ebp
call fcn.00504f50
push ebx
push 1
push ecx
cmp ax, bx
mov ecx, esp
jg 0x5104e0
mov dword [esp + 0x24], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x18c], 0xb
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x609440
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x18c], 2
call fcn.00543af0
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x510511
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x510508
cmp al, 0xff
je 0x510508
dec al
mov byte [ecx], al
jmp 0x510511
mov dword [esp + 0x24], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0x18c], 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x60e6a8
jmp 0x5104ad
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x17c], bl
call fcn.005581a0
lea ecx, [esp + 0x14]
mov dword [esp + 0x17c], 0xffffffff
call fcn.005581a0
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
mov ax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x170
ret