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

Disassembly:
push 0xffffffffffffffff
push 0x56d19f
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0
call fcn.004fdf50
mov ebp, dword [esp + 0xf4]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
mov dword [esp + 0xf0], 0
call fcn.005014b0
mov edx, dword [esp + 0x24]
test eax, eax
mov esi, dword [esp + 0x28]
mov ecx, edx
setle bl
mov dword [esp + 0xec], 0xffffffff
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x517442
call fcn.004edb70
jmp 0x517447
call fcn.00443e80
add esp, 4
test bl, bl
je 0x517455
xor al, al
jmp 0x517b76
push 0
mov ecx, ebp
call fcn.00503070
test al, al
jne 0x5174bf
push 2
lea ecx, [esp + 0x20]
call fcn.004fdf50
lea eax, [esp + 0x1c]
mov dword [esp + 0xec], 1
push eax
mov ecx, ebp
call fcn.005014b0
mov edx, dword [esp + 0x24]
test eax, eax
mov esi, dword [esp + 0x28]
sete bl
xor eax, eax
mov dword [esp + 0xec], 0xffffffff
mov edi, esi
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x517b6c
call fcn.004edb70
jmp 0x517b71
push 3
lea ecx, [esp + 0x70]
call fcn.004fdf50
mov dword [esp + 0xec], 2
xor ebx, ebx
jmp 0x5174e0
push 4
lea ecx, [esp + 0x20]
call fcn.004fdf50
lea eax, [esp + 0x30]
mov byte [esp + 0xec], 3
push eax
lea ecx, [esp + 0x70]
call fcn.004f73c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 4
push ecx
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004f4a20
push ebp
push eax
mov byte [esp + 0x100], 5
call fcn.005182a0
mov edx, dword [esp + 0x60]
add esp, 0x14
mov esi, dword [esp + 0x50]
cmp eax, 1
mov dword [esp + 0x18], eax
mov edi, esi
sete byte [esp + 0x17]
mov byte [esp + 0xec], 4
xor eax, eax
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x517563
call fcn.004edb70
jmp 0x517568
call fcn.00443e80
mov edx, dword [esp + 0x3c]
xor eax, eax
mov esi, dword [esp + 0x40]
add esp, 4
mov edi, esi
mov byte [esp + 0xec], 3
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x517597
call fcn.004edb70
jmp 0x51759c
call fcn.00443e80
mov edx, dword [esp + 0x28]
xor eax, eax
mov esi, dword [esp + 0x2c]
add esp, 4
mov edi, esi
mov byte [esp + 0xec], 2
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x5175cb
call fcn.004edb70
jmp 0x5175d0
call fcn.00443e80
add esp, 4
cmp byte [esp + 0x17], 0
je 0x517602
inc ebx
cmp ebx, 0x40
jne 0x5175eb
mov ecx, ebp
call fcn.005036e0
test al, al
jne 0x517609
lea ecx, [esp + 0x6c]
call fcn.004fe660
lea ecx, [esp + 0x6c]
call fcn.004fe660
jmp 0x5174e0
cmp dword [esp + 0x18], 0
jne 0x517618
mov edx, dword [esp + 0x74]
xor bl, bl
mov esi, dword [esp + 0x78]
jmp 0x517491
push 1
lea ecx, [esp + 0xd4]
call fcn.004fdf50
lea eax, [esp + 0xd0]
mov byte [esp + 0xec], 6
push eax
lea eax, [esp + 0x84]
push ebp
push eax
call fcn.004f4a40
add esp, 0xc
lea ecx, [esp + 0xd0]
mov byte [esp + 0xec], 8
call fcn.0043c210
xor esi, esi
lea ecx, [esp + 0x80]
push esi
call fcn.00503070
test al, al
jne 0x517682
mov edi, edi
inc esi
lea ecx, [esp + 0x80]
push esi
call fcn.00503070
test al, al
je 0x517670
push esi
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x88]
call fcn.004fe570
push ebp
lea eax, [esp + 0x70]
mov byte [esp + 0xf0], 9
push eax
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.005184d0
add esp, 0x10
push 2
lea ecx, [esp + 0x34]
mov byte [esp + 0xf0], 0xa
call fcn.004fdf50
lea eax, [esp + 0x30]
mov byte [esp + 0xec], 0xb
mov ebx, 1
lea ecx, [esp + 0x58]
push eax
mov dword [esp + 0x1c], ebx
call fcn.005014b0
test eax, eax
je 0x517748
push 2
lea ecx, [esp + 0x20]
call fcn.004fdf50
lea eax, [esp + 0x1c]
mov dword [esp + 0xec], 0xc
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x1c], 3
push ebp
push eax
call fcn.004f4a20
add esp, 0xc
mov ebx, 7
mov dword [esp + 0xec], 0xd
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c], ebx
call fcn.005014b0
mov byte [esp + 0x17], 0
test eax, eax
jne 0x51774d
mov byte [esp + 0x17], 1
mov dword [esp + 0xec], 0xc
test bl, 4
je 0x517790
mov edx, dword [esp + 0x4c]
xor eax, eax
mov ebp, dword [esp + 0x50]
mov ecx, edx
mov edi, ebp
and ebx, 0xfffffffb
rep stosd dword es:[edi], eax
lea eax, [edx*4]
mov dword [esp + 0x18], ebx
push ebp
cmp eax, 0x10
jb 0x517788
call fcn.004edb70
jmp 0x51778d
call fcn.00443e80
add esp, 4
mov dword [esp + 0xec], 0xb
test bl, 2
je 0x5177d3
mov edx, dword [esp + 0x24]
xor eax, eax
mov ebp, dword [esp + 0x28]
mov ecx, edx
mov edi, ebp
and ebx, 0xfffffffd
rep stosd dword es:[edi], eax
lea eax, [edx*4]
mov dword [esp + 0x18], ebx
push ebp
cmp eax, 0x10
jb 0x5177cb
call fcn.004edb70
jmp 0x5177d0
call fcn.00443e80
add esp, 4
mov dword [esp + 0xec], 0xa
test bl, 1
je 0x51780f
mov edx, dword [esp + 0x38]
xor eax, eax
mov ebx, dword [esp + 0x3c]
mov ecx, edx
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x517807
call fcn.004edb70
jmp 0x51780c
call fcn.00443e80
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x517aa7
mov ebp, 1
cmp esi, ebp
jbe 0x517aa3
jmp 0x517830
push 2
lea ecx, [esp + 0x34]
call fcn.004fdf50
lea eax, [esp + 0x94]
mov byte [esp + 0xec], 0xe
push eax
lea ecx, [esp + 0x5c]
call fcn.004f73c0
lea ecx, [esp + 0x30]
mov byte [esp + 0xec], 0xf
push ecx
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.004f4a20
push dword [esp + 0x100]
mov byte [esp + 0xfc], 0x10
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004f4b10
add esp, 0x18
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xf0], 0x11
call fcn.004fe4f0
mov edx, dword [esp + 0x24]
xor eax, eax
mov ebx, dword [esp + 0x28]
mov ecx, edx
mov edi, ebx
mov byte [esp + 0xec], 0x10
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x5178ca
call fcn.004edb70
jmp 0x5178cf
call fcn.00443e80
mov edx, dword [esp + 0xc8]
xor eax, eax
mov ebx, dword [esp + 0xcc]
add esp, 4
mov edi, ebx
mov byte [esp + 0xec], 0xf
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x517904
call fcn.004edb70
jmp 0x517909
call fcn.00443e80
mov edx, dword [esp + 0xa0]
xor eax, eax
mov ebx, dword [esp + 0xa4]
add esp, 4
mov edi, ebx
mov byte [esp + 0xec], 0xe
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x51793e
call fcn.004edb70
jmp 0x517943
call fcn.00443e80
mov edx, dword [esp + 0x3c]
xor eax, eax
mov ebx, dword [esp + 0x40]
add esp, 4
mov edi, ebx
mov byte [esp + 0xec], 0xa
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x517972
call fcn.004edb70
jmp 0x517977
call fcn.00443e80
add esp, 4
lea ecx, [esp + 0x30]
push 2
call fcn.004fdf50
lea eax, [esp + 0x30]
mov byte [esp + 0xec], 0x12
push eax
push dword [esp + 0xf8]
lea eax, [esp + 0x9c]
push eax
call fcn.004f4a20
add esp, 0xc
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xf0], 0x13
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 + 0xec], 0x12
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x5179f4
call fcn.004edb70
jmp 0x5179f9
call fcn.00443e80
mov edx, dword [esp + 0x3c]
xor eax, eax
mov ebx, dword [esp + 0x40]
add esp, 4
mov edi, ebx
mov byte [esp + 0xec], 0xa
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x517a28
call fcn.004edb70
jmp 0x517a2d
call fcn.00443e80
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x517aa7
push 2
lea ecx, [esp + 0x48]
call fcn.004fdf50
lea eax, [esp + 0x44]
mov byte [esp + 0xec], 0x14
push eax
lea ecx, [esp + 0x5c]
call fcn.005014b0
mov edx, dword [esp + 0x4c]
test eax, eax
mov ebx, dword [esp + 0x50]
mov ecx, edx
sete byte [esp + 0x17]
mov byte [esp + 0xec], 0xa
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x517a8b
call fcn.004edb70
jmp 0x517a90
call fcn.00443e80
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x517aa3
inc ebp
cmp ebp, esi
jb 0x517830
xor bl, bl
jmp 0x517aa9
mov bl, 1
mov edx, dword [esp + 0x60]
xor eax, eax
mov esi, dword [esp + 0x64]
mov ecx, edx
mov edi, esi
mov byte [esp + 0xec], 9
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x517ad5
call fcn.004edb70
jmp 0x517ada
call fcn.00443e80
mov edx, dword [esp + 0xb4]
xor eax, eax
mov esi, dword [esp + 0xb8]
add esp, 4
mov edi, esi
mov byte [esp + 0xec], 8
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x517b0f
call fcn.004edb70
jmp 0x517b14
call fcn.00443e80
mov edx, dword [esp + 0x8c]
xor eax, eax
mov esi, dword [esp + 0x90]
add esp, 4
mov edi, esi
mov byte [esp + 0xec], 2
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x517b57
call fcn.004edb70
mov edx, dword [esp + 0x78]
add esp, 4
mov esi, dword [esp + 0x78]
jmp 0x517491
call fcn.00443e80
mov edx, dword [esp + 0x78]
add esp, 4
mov esi, dword [esp + 0x78]
jmp 0x517491
call fcn.00443e80
add esp, 4
mov al, bl
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret