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

Disassembly:
push 0xffffffffffffffff
push 0x10174801
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x101c8fb4]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c8fb4]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa0]
mov ebp, dword [esp + 0xa4]
mov eax, dword [esp + 0xb8]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov edi, 0xf
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x98], 1
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
push eax
mov eax, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0xb0]
push ecx
push edx
push eax
push ebp
lea eax, [esp + 0x40]
lea ecx, [esp + 0x3c]
mov dword [ebp + 0x23cc], ebx
call fcn.1005a240
add esp, 0x18
test eax, eax
jne 0x1005d9e9
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x38]
push ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10003e70
jmp 0x1005de4e
push 0x1772
call fcn.10111579
push 0x1772
mov dword [esp + 0x1c], eax
call fcn.10111579
add esp, 8
cmp dword [esp + 0x14], ebx
mov edi, eax
mov dword [esp + 0x18], edi
je 0x1005de24
cmp edi, ebx
mov eax, dword [esp + 0x14]
je 0x1005de21
push 0x1772
push ebx
push eax
call fcn.10112240
push 0x1772
push ebx
push edi
call fcn.10112240
xor edi, edi
add esp, 0x18
cmp dword [ebp + 0x23cc], ebx
mov dword [esp + 0x1c], edi
jle 0x1005ddb3
lea ecx, [ecx]
movzx esi, word [ebp + edi*8 + 0x3ce]
xor eax, eax
add esi, dword [esp + 0x28]
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov word [esp + 0x69], ax
mov byte [esp + 0x6b], al
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov word [esp + 0x89], ax
mov byte [esp + 0x8b], al
movzx eax, word [ebp + edi*8 + 0x3cc]
add eax, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
push eax
push 0x1017bab8
push ecx
mov byte [esp + 0x58], bl
mov byte [esp + 0x78], bl
call fcn.10112d57
push esi
lea edx, [esp + 0x7c]
push 0x1017bab8
push edx
call fcn.10112d57
add esp, 0x18
cmp edi, ebx
jne 0x1005db29
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x4c]
mov ecx, eax
sub edx, ecx
jmp 0x1005db00
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x1005db00
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x6c]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x1005db18
jmp 0x1005dda0
movzx edx, word [ebp + edi*8 + 0x3ca]
movzx eax, word [ebp + edi*8 + 0x3c6]
mov ecx, dword [ebp + 0x78]
add eax, edx
movzx edx, word [ebp + edi*8 + 0x3ce]
lea esi, [ecx + eax]
cmp edx, esi
jge 0x1005dc13
movzx ecx, word [ebp + edi*8 + 0x3c8]
movzx edx, word [ebp + edi*8 + 0x3c4]
movzx eax, word [ebp + edi*8 + 0x3cc]
add ecx, edx
add ecx, dword [ebp + 0x3c8]
cmp eax, ecx
jle 0x1005dda0
mov edi, dword [esp + 0x14]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1005db80
mov cx, word [0x1017ba54]
lea eax, [esp + 0x4c]
mov word [edi], cx
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005dba0
mov edi, dword [esp + 0x14]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x1005dbb4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1005dbd3
mov dx, word [0x1017ba54]
lea eax, [esp + 0x6c]
mov word [edi], dx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005dbf0
mov edi, dword [esp + 0x18]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x1005dc04
jmp 0x1005dd8e
mov esi, dword [ebp + 0x3c4]
add esi, ecx
add esi, eax
cmp edx, esi
jle 0x1005dcc3
mov edi, dword [esp + 0x14]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1005dc30
mov ax, word [0x1017ba54]
mov word [edi], ax
lea eax, [esp + 0x4c]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005dc50
mov edi, dword [esp + 0x14]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x1005dc64
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1005dc83
mov cx, word [0x1017ba54]
lea eax, [esp + 0x6c]
mov word [edi], cx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005dca0
mov edi, dword [esp + 0x18]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x1005dcb4
jmp 0x1005dd8e
movzx edx, word [ebp + edi*8 + 0x3c8]
movzx eax, word [ebp + edi*8 + 0x3cc]
movzx ecx, word [ebp + edi*8 + 0x3c4]
sub eax, edx
sub eax, ecx
sub eax, dword [esp + 0x24]
add eax, dword [esp + 0xb0]
cmp eax, dword [ebp + 0x3c8]
jle 0x1005dda0
mov edi, dword [esp + 0x14]
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1005dd00
mov dx, word [0x1017ba54]
lea eax, [esp + 0x4c]
mov word [edi], dx
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005dd20
mov edi, dword [esp + 0x14]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x1005dd34
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1005dd53
mov ax, word [0x1017ba54]
mov word [edi], ax
lea eax, [esp + 0x6c]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005dd70
mov edi, dword [esp + 0x18]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x1005dd84
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
add edi, 1
cmp edi, dword [ebp + 0x23cc]
mov dword [esp + 0x1c], edi
jl 0x1005da50
mov edi, dword [esp + 0x14]
cmp byte [edi], bl
je 0x1005de08
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1005ddc0
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.10003f90
push 1
push 0x1017ba38
lea ecx, [esp + 0x38]
call fcn.10003f90
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1005ddf0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x38]
call fcn.10003f90
jmp 0x1005de0c
mov esi, dword [esp + 0x18]
push edi
call fcn.1011163c
push esi
call fcn.1011163c
mov esi, dword [esp + 0x34]
add esp, 8
jmp 0x1005de31
push eax
jmp 0x1005de29
cmp edi, ebx
je 0x1005de31
push edi
call fcn.1011163c
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x38]
mov edi, 0xf
push ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10003e70
mov dword [esp + 0x20], 1
mov byte [esp + 0x98], bl
cmp dword [esp + 0x48], 0x10
jb 0x1005de71
mov edx, dword [esp + 0x34]
push edx
call fcn.10100548
add esp, 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10111b17
add esp, 0x88
ret