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

Disassembly:
push 0xffffffffffffffff
push 0x5dbaa6
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 + 0x18]
mov dword [esp + 0x40], ebp
call fcn.00558060
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x17c], ebx
call fcn.00558060
mov al, byte [esp + 0x17]
sub esp, 0x10
mov edx, esp
or esi, 0xffffffff
mov edi, 0x619c18
mov ecx, esi
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
mov dword [esp + 0x34], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x18c], 1
push ecx
push 0x619c18
mov ecx, edx
call fcn.004017b0
push ebx
lea ecx, [esp + 0x3c]
call fcn.00542e70
push 0xb
mov ecx, ebp
mov byte [esp + 0x180], 2
call fcn.00509f70
cmp ax, bx
jge 0x50dfdc
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x18c], 3
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x609440
jmp 0x50e00e
jne 0x50e072
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0x18c], 4
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x60e030
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x18c], 2
call fcn.00543af0
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x50e04a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x50e041
cmp al, 0xff
je 0x50e041
dec al
mov byte [ecx], al
jmp 0x50e04a
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x17c], bl
call fcn.005581a0
mov dword [esp + 0x17c], esi
jmp 0x50e69b
push 0xffff
lea ecx, [esp + 0x78]
push 0x609488
push ecx
call fcn.005bcf3d
mov al, byte [esp + 0x23]
push ecx
mov edx, esp
lea edi, [esp + 0x84]
or ecx, 0xffffffff
mov dword [esp + 0x34], esp
mov byte [edx], al
xor eax, eax
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
push ecx
lea ecx, [esp + 0x88]
push ecx
mov ecx, edx
call fcn.004017b0
sub esp, 0x10
lea edx, [esp + 0x37]
mov ecx, esp
mov dword [esp + 0x74], esp
push edx
push 0x60af04
mov byte [esp + 0x1a4], 5
call fcn.00404ee0
sub esp, 0x10
lea eax, [esp + 0x6f]
mov ecx, esp
mov dword [esp + 0xa0], esp
push eax
push 0x60cf40
mov byte [esp + 0x1b4], 6
call fcn.00404ee0
sub esp, 0x10
lea edx, [esp + 0x7e]
mov ecx, esp
mov dword [esp + 0x98], esp
push edx
push 0x619c18
mov byte [esp + 0x1c4], 7
call fcn.00404ee0
sub esp, 0x10
mov byte [esp + 0x1cc], 8
mov esi, esp
mov dword [esp + 0x70], esp
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push 6
push 0x60e028
call fcn.00558100
push esi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x1dc], 9
mov esi, esp
mov dword [esp + 0x70], esp
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push 6
push 0x60e028
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 + 0x2c], cx
push ebx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x188], 0xa
call fcn.004120f0
mov eax, dword [esp + 0x64]
mov byte [esp + 0x17c], 2
cmp eax, ebx
je 0x50e1e6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x50e1dd
cmp al, 0xff
je 0x50e1dd
dec al
mov byte [ecx], al
jmp 0x50e1e6
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.00551f50
cmp ax, 2
je 0x50e52c
lea eax, [esp + 0x44]
lea ecx, [esp + 0x28]
push eax
call fcn.00542fb0
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x50e21f
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 + 0x48]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x50e265
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x50e25c
cmp al, 0xff
je 0x50e25c
dec al
mov byte [ecx], al
jmp 0x50e265
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x74]
mov dword [esp + 0x48], ebx
push ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.005bd3b2
add esp, 4
cmp ax, bx
mov dword [esp + 0x24], eax
jl 0x50e292
movsx edx, ax
cmp edx, 0xffff
jle 0x50e2da
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x18c], 0xb
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60e6a0
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x18c], 2
call fcn.00543af0
jmp 0x50e072
push ebx
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0x18c], 0xc
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60e010
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x18c], 2
call fcn.00543af0
mov al, byte [ebp + 0x2a]
lea esi, [ebp + 0x3c]
mov byte [0x60e5da], al
mov eax, dword [esp + 0x24]
mov ecx, eax
mov byte [0x60e5eb], al
sar ecx, 8
mov byte [0x60e5ea], cl
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x50e369
mov al, byte [eax - 1]
cmp al, bl
je 0x50e359
cmp al, 0xff
je 0x50e359
mov edx, dword [esi + 8]
push ebx
push edx
mov ecx, esi
call fcn.004018c0
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x50e364
mov byte [eax - 1], 0xff
mov eax, dword [esi + 4]
jmp 0x50e36e
mov eax, 0x5e514c
mov al, byte [eax]
mov byte [0x60e5e4], al
mov ecx, dword [esi + 8]
cmp ecx, 1
jb 0x50e3a9
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x50e3a9
mov al, byte [eax - 1]
cmp al, bl
je 0x50e398
cmp al, 0xff
je 0x50e398
push ebx
push ecx
mov ecx, esi
call fcn.004018c0
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x50e3a3
mov byte [eax - 1], 0xff
mov eax, dword [esi + 4]
inc eax
jmp 0x50e3ae
mov eax, 0x5e514c
mov cl, byte [eax]
mov byte [0x60e5e5], cl
mov ecx, dword [esi + 8]
cmp ecx, 2
jb 0x50e3ec
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x50e3ec
mov al, byte [eax - 1]
cmp al, bl
je 0x50e3d9
cmp al, 0xff
je 0x50e3d9
push ebx
push ecx
mov ecx, esi
call fcn.004018c0
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x50e3e4
mov byte [eax - 1], 0xff
mov eax, dword [esi + 4]
add eax, 2
jmp 0x50e3f1
mov eax, 0x5e514c
mov dl, byte [eax]
mov byte [0x60e5e6], dl
mov ecx, dword [esi + 8]
cmp ecx, 3
jb 0x50e42f
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x50e42f
mov al, byte [eax - 1]
cmp al, bl
je 0x50e41c
cmp al, 0xff
je 0x50e41c
push ebx
push ecx
mov ecx, esi
call fcn.004018c0
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x50e427
mov byte [eax - 1], 0xff
mov esi, dword [esi + 4]
add esi, 3
jmp 0x50e434
mov esi, 0x5e514c
movsx cx, byte [0x60e5d8]
mov al, byte [esi]
push ecx
push 0x60e5d9
lea ecx, [esp + 0x20]
mov byte [0x60e5e7], al
call fcn.00558600
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00558070
mov ecx, ebp
call fcn.00504f50
cmp ax, bx
jg 0x50e4a2
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x18c], 0xd
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x609440
jmp 0x50e515
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x10]
cmp ax, bx
jg 0x50e4dd
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x18c], 0xe
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x609440
jmp 0x50e515
movsx eax, word [esp + 0x24]
mov ecx, dword [ebp + 0x4c]
push ebx
push 1
push ecx
cmp eax, ecx
mov ecx, esp
je 0x50e557
mov dword [esp + 0x1c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x18c], 0xf
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60e000
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x18c], 2
call fcn.00543af0
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x50e674
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x50e66b
cmp al, 0xff
je 0x50e66b
dec al
mov byte [ecx], al
jmp 0x50e674
mov dword [esp + 0x1c], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0x18c], 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60e008
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x18c], 2
call fcn.00543af0
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x60e654
call fcn.00558100
push esi
call fcn.00560f40
mov ecx, dword [0x619a70]
add esp, 8
call fcn.00561b40
mov ecx, dword [esp + 0x40]
xor ebp, ebp
lea esi, [ecx + 4]
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x50e5d8
xor edx, edx
jmp 0x50e5ee
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx edi, bp
cmp edi, edx
jae 0x50e65b
push edi
mov ecx, esi
call fcn.004e6420
mov dl, byte [eax + 4]
add eax, 4
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x20], esp
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov edx, dword [0x5e5150]
push edx
push ebx
push eax
call fcn.004120f0
push edi
mov ecx, esi
mov byte [esp + 0x190], 0x11
call fcn.004e6420
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00558070
mov ecx, dword [0x619a70]
mov byte [esp + 0x190], 2
call fcn.00561e40
inc ebp
jmp 0x50e5cd
mov ecx, dword [0x619a70]
call fcn.00561f50
jmp 0x50e52c
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x17c], bl
call fcn.005581a0
mov dword [esp + 0x17c], 0xffffffff
lea ecx, [esp + 0x18]
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