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

Disassembly:
push 0xffffffffffffffff
push 0x5dbfee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x34], 0x5e5238
mov word [esp + 0x38], 0xffff
mov word [esp + 0x3a], di
lea ecx, [esp + 0x14]
mov dword [esp + 0x98], edi
call fcn.00558060
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 1
call fcn.00558060
push 6
push 0x60e7a0
lea ecx, [esp + 0x28]
mov byte [esp + 0xa0], 2
call fcn.00558100
push 6
push 0x60e798
lea ecx, [esp + 0x24]
mov byte [esp + 0xa0], 3
call fcn.00558100
xor bl, bl
mov byte [esp + 0x98], 4
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
push 5
call fcn.005584a0
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00558070
mov ecx, dword [0x619a58]
call fcn.00546580
inc bl
cmp bl, 4
mov byte [esp + 0x24], bl
jbe 0x512034
mov esi, dword [esp + 0xa0]
lea ecx, [esp + 0x20]
push esi
push 5
mov byte [esp + 0x34], 1
mov byte [esp + 0x35], 2
mov byte [esp + 0x36], 3
mov byte [esp + 0x37], 4
mov byte [esp + 0x38], 5
call fcn.005584a0
push esi
push 5
lea ecx, [esp + 0x24]
call fcn.005584a0
movsx eax, si
mov al, byte [esp + eax + 0x2c]
cmp al, 1
mov byte [esp + 0x24], al
jne 0x5120ff
push edi
push 4
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0xa8], 5
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x60e790
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xa8], 4
call fcn.00543af0
cmp ax, 4
je 0x5126d9
mov cx, word [0x60aa30]
xor edx, edx
mov dword [esp + 0x7e], edx
mov word [esp + 0x7c], cx
mov dword [esp + 0x82], edx
mov dword [esp + 0x86], edx
mov dword [esp + 0x8a], edx
mov word [esp + 0x8e], dx
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00558070
mov ecx, dword [0x619a64]
call fcn.00548370
xor esi, esi
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x60e788
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x60e780
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x60e778
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
lea edi, [esp + 0x8c]
xor eax, eax
mov dword [esp + 0x3c], esp
mov byte [ebp], cl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, ebp
push ebx
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
call fcn.004018c0
test al, al
je 0x512209
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x8c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], ebx
mov ebp, dword [ebp + 4]
add ebp, ebx
mov byte [ebp], 0
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esp + 0xb0], 6
call fcn.00558070
mov ecx, dword [0x619a64]
mov byte [esp + 0xac], 4
call fcn.00548570
mov ecx, dword [0x619a64]
call fcn.00548950
cmp ax, 2
je 0x5126d9
test ax, ax
jne 0x51248c
cmp byte [0x619c14], 1
jne 0x5122f6
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60e770
call fcn.00558100
lea ecx, [esp + 0x40]
push ecx
call fcn.00560f40
mov eax, dword [eax + 4]
add esp, 8
test eax, eax
jne 0x51228c
mov eax, 0x5e514c
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x40]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp eax, esi
je 0x5122e5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x5122dc
cmp al, 0xff
je 0x5122dc
dec al
mov byte [ecx], al
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
jmp 0x51212e
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
jmp 0x51212e
push 7
push 0x60e768
lea ecx, [esp + 0x1c]
call fcn.00558600
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push esi
push 4
call fcn.005584a0
push esi
push 5
lea ecx, [esp + 0x1c]
call fcn.005584a0
lea ecx, [esp + 0x14]
push ecx
call fcn.004023c0
add esp, 4
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00558070
call fcn.00402440
add esp, 8
push 0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0xa8], 7
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x60e760
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xa8], 4
call fcn.00543af0
push 0x4b0
call fcn.00401520
add esp, 4
lea ecx, [esp + 0x18]
push 3
call fcn.00558380
cmp al, 0x7f
jne 0x5123f6
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0xa8], 8
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x60e758
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xa8], 4
call fcn.00543af0
jmp 0x51212e
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60e770
call fcn.00558100
lea ecx, [esp + 0x50]
push ecx
call fcn.00560f40
mov eax, dword [eax + 4]
add esp, 8
test eax, eax
jne 0x512422
mov eax, 0x5e514c
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x50]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp eax, esi
je 0x51247b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x512472
cmp al, 0xff
je 0x512472
dec al
mov byte [ecx], al
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
jmp 0x51212e
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
jmp 0x51212e
cmp ax, 1
jne 0x51212e
cmp byte [0x619c14], 1
jne 0x512539
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60e750
call fcn.00558100
lea ecx, [esp + 0x60]
push ecx
call fcn.00560f40
mov eax, dword [eax + 4]
add esp, 8
test eax, eax
jne 0x5124cf
mov eax, 0x5e514c
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp eax, esi
je 0x512528
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x51251f
cmp al, 0xff
je 0x51251f
dec al
mov byte [ecx], al
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
jmp 0x51212e
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
jmp 0x51212e
push 7
push 0x60e748
lea ecx, [esp + 0x1c]
call fcn.00558600
mov ecx, dword [esp + 0x24]
push ecx
push 4
lea ecx, [esp + 0x1c]
call fcn.005584a0
lea edx, [esp + 0x14]
push edx
call fcn.004023c0
add esp, 4
lea eax, [esp + 0x18]
lea edx, [esp + 0x14]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00558070
call fcn.00402440
add esp, 8
push 0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0xa8], 9
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x60e760
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xa8], 4
call fcn.00543af0
push 0x4b0
call fcn.00401520
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00558520
test ax, ax
je 0x512690
push 3
lea ecx, [esp + 0x1c]
call fcn.00558380
cmp al, 0x7f
je 0x512690
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60e750
call fcn.00558100
lea eax, [esp + 0x70]
push eax
call fcn.00560f40
mov eax, dword [eax + 4]
add esp, 8
test eax, eax
jne 0x512626
mov eax, 0x5e514c
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x70]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp eax, esi
je 0x51267f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x512676
cmp al, 0xff
je 0x512676
dec al
mov byte [ecx], al
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
jmp 0x51212e
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
jmp 0x51212e
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0xa8], 0xa
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x60e758
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xa8], 4
call fcn.00543af0
jmp 0x51212e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x98], 3
call fcn.005581a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x98], 2
call fcn.005581a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 1
call fcn.005581a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 0
call fcn.005581a0
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
xor ax, ax
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c
ret 4