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

Disassembly:
push 0xffffffffffffffff
push 0x56d2cc
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [esp + 0x1c]
push 3
mov dword [esp + 0x1c], ebx
call fcn.004fdf50
mov ebp, dword [esp + 0xb8]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
mov dword [esp + 0xb4], ebx
call fcn.005014b0
mov edx, dword [esp + 0x24]
test eax, eax
mov esi, dword [esp + 0x28]
mov ecx, edx
setle byte [esp + 0x17]
mov dword [esp + 0xb0], 0xffffffff
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x517c1e
call fcn.004edb70
jmp 0x517c23
call fcn.00443e80
add esp, 4
cmp byte [esp + 0x17], 0
je 0x517d2b
push 2
lea ecx, [esp + 0x5c]
call fcn.004fdf50
lea eax, [esp + 0x58]
mov dword [esp + 0xb0], 1
mov ebx, 1
mov ecx, ebp
push eax
mov dword [esp + 0x1c], ebx
call fcn.005014b0
test eax, eax
je 0x517c94
push 3
lea ecx, [esp + 0x20]
call fcn.004fdf50
lea eax, [esp + 0x1c]
mov dword [esp + 0xb0], 2
mov ebx, 3
mov ecx, ebp
push eax
mov dword [esp + 0x1c], ebx
call fcn.005014b0
mov byte [esp + 0x17], 0
test eax, eax
jne 0x517c99
mov byte [esp + 0x17], 1
mov dword [esp + 0xb0], 1
test bl, 2
je 0x517cdc
mov edx, dword [esp + 0x24]
xor eax, eax
mov esi, dword [esp + 0x28]
mov ecx, edx
mov edi, esi
and ebx, 0xfffffffd
rep stosd dword es:[edi], eax
lea eax, [edx*4]
mov dword [esp + 0x18], ebx
push esi
cmp eax, 0x10
jb 0x517cd4
call fcn.004edb70
jmp 0x517cd9
call fcn.00443e80
add esp, 4
mov dword [esp + 0xb0], 0xffffffff
test bl, 1
je 0x517d22
mov edx, dword [esp + 0x60]
xor eax, eax
mov esi, dword [esp + 0x64]
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x517d1a
call fcn.004edb70
mov al, byte [esp + 0x1b]
add esp, 4
jmp 0x51827f
call fcn.00443e80
add esp, 4
mov al, byte [esp + 0x17]
jmp 0x51827f
push 0
mov ecx, ebp
call fcn.00503070
test al, al
jne 0x517d67
push 2
lea ecx, [esp + 0x20]
call fcn.004fdf50
lea eax, [esp + 0x1c]
mov dword [esp + 0xb0], 3
mov ebx, 4
mov ecx, ebp
push eax
mov dword [esp + 0x1c], ebx
call fcn.005014b0
test eax, eax
jne 0x517dc3
push 1
lea ecx, [esp + 0x5c]
call fcn.004fdf50
push ebp
push dword [esp + 0xc0]
lea eax, [esp + 0x88]
mov dword [esp + 0xb8], 4
or ebx, 8
push eax
mov dword [esp + 0x24], ebx
call fcn.004f5cc0
add esp, 0xc
lea ecx, [esp + 0x58]
mov dword [esp + 0xb0], 5
push ecx
or ebx, 0x10
mov ecx, eax
mov dword [esp + 0x1c], ebx
call fcn.005014b0
mov byte [esp + 0x17], 0
test eax, eax
je 0x517dc8
mov byte [esp + 0x17], 1
mov dword [esp + 0xb0], 4
test bl, 0x10
je 0x517e11
mov edx, dword [esp + 0x88]
xor eax, eax
mov esi, dword [esp + 0x8c]
mov ecx, edx
mov edi, esi
and ebx, 0xffffffef
rep stosd dword es:[edi], eax
lea eax, [edx*4]
mov dword [esp + 0x18], ebx
push esi
cmp eax, 0x10
jb 0x517e09
call fcn.004edb70
jmp 0x517e0e
call fcn.00443e80
add esp, 4
mov dword [esp + 0xb0], 3
test bl, 8
je 0x517e54
mov edx, dword [esp + 0x60]
xor eax, eax
mov esi, dword [esp + 0x64]
mov ecx, edx
mov edi, esi
and ebx, 0xfffffff7
rep stosd dword es:[edi], eax
lea eax, [edx*4]
mov dword [esp + 0x18], ebx
push esi
cmp eax, 0x10
jb 0x517e4c
call fcn.004edb70
jmp 0x517e51
call fcn.00443e80
add esp, 4
mov dword [esp + 0xb0], 0xffffffff
test bl, 4
je 0x517e93
mov edx, dword [esp + 0x24]
xor eax, eax
mov esi, dword [esp + 0x28]
mov ecx, edx
mov edi, esi
and ebx, 0xfffffffb
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x517e8b
call fcn.004edb70
jmp 0x517e90
call fcn.00443e80
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x51827d
push 1
lea ecx, [esp + 0x5c]
call fcn.004fdf50
lea eax, [esp + 0x58]
mov dword [esp + 0xb0], 6
push eax
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.004f4a20
add esp, 0xc
mov edx, dword [esp + 0x60]
xor eax, eax
mov esi, dword [esp + 0x64]
mov ecx, edx
mov edi, esi
mov byte [esp + 0xb0], 8
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x517ef3
call fcn.004edb70
jmp 0x517ef8
call fcn.00443e80
add esp, 4
lea ecx, [esp + 0x44]
xor esi, esi
push esi
call fcn.00503070
test al, al
jne 0x517f1f
jmp 0x517f10
inc esi
lea ecx, [esp + 0x44]
push esi
call fcn.00503070
test al, al
je 0x517f10
push esi
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x4c]
call fcn.004fe570
push ebp
lea eax, [esp + 0x70]
mov byte [esp + 0xb4], 9
push eax
push dword [esp + 0xc4]
lea eax, [esp + 0x3c]
push eax
call fcn.0050f060
add esp, 0x10
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0xb4], 0xa
call fcn.004fdf50
lea eax, [esp + 0x1c]
mov byte [esp + 0xb0], 0xb
or ebx, 0x20
lea ecx, [esp + 0x30]
push eax
mov dword [esp + 0x1c], ebx
call fcn.005014b0
test eax, eax
je 0x517f9b
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x34]
call fcn.005014b0
mov byte [esp + 0x17], 0
test eax, eax
jne 0x517fa0
mov byte [esp + 0x17], 1
mov dword [esp + 0xb0], 0xa
test bl, 0x20
je 0x517fdc
mov edx, dword [esp + 0x24]
xor eax, eax
mov ebx, dword [esp + 0x28]
mov ecx, edx
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x517fd4
call fcn.004edb70
jmp 0x517fd9
call fcn.00443e80
add esp, 4
cmp byte [esp + 0x17], 0
je 0x518095
mov edx, dword [esp + 0x38]
xor eax, eax
mov esi, dword [esp + 0x3c]
mov ecx, edx
mov edi, esi
mov byte [esp + 0xb0], 9
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x518013
call fcn.004edb70
jmp 0x518018
call fcn.00443e80
mov edx, dword [esp + 0x78]
xor eax, eax
mov esi, dword [esp + 0x7c]
add esp, 4
mov edi, esi
mov byte [esp + 0xb0], 8
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x518047
call fcn.004edb70
jmp 0x51804c
call fcn.00443e80
mov edx, dword [esp + 0x50]
xor eax, eax
mov esi, dword [esp + 0x54]
add esp, 4
mov edi, esi
mov dword [esp + 0xb0], 0xffffffff
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x518086
call fcn.004edb70
add esp, 4
mov al, 1
jmp 0x51827f
call fcn.00443e80
add esp, 4
mov al, 1
jmp 0x51827f
mov ebp, 1
cmp esi, ebp
jbe 0x5181de
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
call fcn.004f73c0
push dword [esp + 0xb8]
mov byte [esp + 0xb4], 0xc
push eax
lea eax, [esp + 0x88]
push eax
call fcn.004f4b10
add esp, 0xc
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 0xd
call fcn.004fe4f0
mov edx, dword [esp + 0x88]
xor eax, eax
mov ebx, dword [esp + 0x8c]
mov ecx, edx
mov edi, ebx
mov byte [esp + 0xb0], 0xc
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x518114
call fcn.004edb70
jmp 0x518119
call fcn.00443e80
mov edx, dword [esp + 0x28]
xor eax, eax
mov ebx, dword [esp + 0x2c]
add esp, 4
mov edi, ebx
mov byte [esp + 0xb0], 0xa
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x518148
call fcn.004edb70
jmp 0x51814d
call fcn.00443e80
add esp, 4
lea eax, [esp + 0x44]
lea ecx, [esp + 0x30]
push eax
call fcn.005014b0
test eax, eax
je 0x517fe7
push 1
lea ecx, [esp + 0x98]
call fcn.004fdf50
lea eax, [esp + 0x94]
mov byte [esp + 0xb0], 0xe
push eax
lea ecx, [esp + 0x34]
call fcn.005014b0
mov edx, dword [esp + 0x9c]
test eax, eax
mov ebx, dword [esp + 0xa0]
mov ecx, edx
sete byte [esp + 0x17]
mov byte [esp + 0xb0], 0xa
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x5181c6
call fcn.004edb70
jmp 0x5181cb
call fcn.00443e80
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x5181de
inc ebp
cmp ebp, esi
jb 0x5180a2
mov edx, dword [esp + 0x38]
xor eax, eax
mov esi, dword [esp + 0x3c]
mov ecx, edx
mov edi, esi
mov byte [esp + 0xb0], 9
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x51820a
call fcn.004edb70
jmp 0x51820f
call fcn.00443e80
mov edx, dword [esp + 0x78]
xor eax, eax
mov esi, dword [esp + 0x7c]
add esp, 4
mov edi, esi
mov byte [esp + 0xb0], 8
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x51823e
call fcn.004edb70
jmp 0x518243
call fcn.00443e80
mov edx, dword [esp + 0x50]
xor eax, eax
mov esi, dword [esp + 0x54]
add esp, 4
mov edi, esi
mov dword [esp + 0xb0], 0xffffffff
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x518275
call fcn.004edb70
jmp 0x51827a
call fcn.00443e80
add esp, 4
xor al, al
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret