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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x32
push 0
push 0
dec ecx
jne 0x517b70
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
call fcn.00405960
xor eax, eax
push ebp
push 0x51835d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [0x7070f8]
mov edx, dword [edx + 0x160]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.004057f8
mov eax, dword [ebp - 8]
call fcn.0040b1f0
test al, al
je 0x518318
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x28]
lea edx, [eax + 0x14]
mov eax, dword [ebp - 0x28]
call fcn.00516190
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x42e178]
call fcn.0042e230
mov dword [ebp - 0x2c], eax
mov dl, 1
mov eax, dword [0x41e408]
call fcn.0040445c
mov dword [ebp - 0x30], eax
mov dl, 1
mov eax, dword [0x41e408]
call fcn.0040445c
mov dword [ebp - 0x34], eax
mov dl, 1
mov eax, dword [0x41e408]
call fcn.0040445c
mov dword [ebp - 0x38], eax
xor eax, eax
push ebp
push 0x51830f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x30]
call fcn.00422740
mov dword [ebp - 0x40], eax
xor eax, eax
push ebp
push 0x5182da
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x5182ac
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x40]
call fcn.004221a8
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0xc]
mov edx, dword [0x7070f8]
mov edx, dword [edx + 0x6658]
call fcn.00405908
jne 0x517dbb
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
mov ecx, 0x518374
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x28]
add eax, 0x1c
call fcn.00405524
mov eax, dword [ebp - 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
mov ecx, 0x51838c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov eax, dword [ebp - 0x28]
fstp qword [eax + 0x20]
wait
mov eax, dword [ebp - 0x28]
push dword [eax + 0x2c]
push dword [eax + 0x28]
mov ecx, 0x5183a4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov eax, dword [ebp - 0x28]
fstp qword [eax + 0x28]
wait
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax + 0x6c]
push eax
mov ecx, 0x5183bc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x28]
mov byte [edx + 0x6c], al
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x70]
push eax
mov ecx, 0x5183d0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x70], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x74]
push eax
mov ecx, 0x5183e4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x74], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x78]
push eax
mov ecx, 0x5183f8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x78], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x7c]
push eax
mov ecx, 0x518410
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x7c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x80]
push eax
mov ecx, 0x518428
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 0x28]
call fcn.005186b0
jmp 0x5182ac
mov eax, dword [ebp - 0xc]
mov edx, dword [0x7070f8]
mov edx, dword [edx + 0x665c]
call fcn.00405908
jne 0x517e60
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov eax, dword [ebp - 0x34]
call fcn.00422740
mov dword [ebp - 0x44], eax
xor eax, eax
push ebp
push 0x517e59
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x517e2f
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x44]
call fcn.004221a8
push 0
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 0x68], 0x3d
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.0048d30c
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x44]
call fcn.004221c0
test al, al
jne 0x517dfe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5182ac
cmp dword [ebp - 0x44], 0
je 0x517e58
mov dl, 1
mov eax, dword [ebp - 0x44]
call fcn.0040447c
ret
mov eax, dword [ebp - 0xc]
mov edx, dword [0x7070f8]
mov edx, dword [edx + 0x6660]
call fcn.00405908
jne 0x517f33
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov eax, dword [ebp - 0x34]
call fcn.00422740
mov dword [ebp - 0x44], eax
xor eax, eax
push ebp
push 0x517f2c
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x517f02
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x44]
call fcn.004221a8
push 0
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 0x68], 0x3d
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.0048d30c
cmp dword [ebp - 0x1c], 0
je 0x517f02
cmp dword [ebp - 0x20], 0
je 0x517f02
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x20]
call fcn.0040a628
mov eax, dword [ebp - 0x6c]
xor edx, edx
call fcn.0040adf8
push eax
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x1c]
call fcn.0040a628
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x44]
call fcn.004221c0
test al, al
jne 0x517ea3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5182ac
cmp dword [ebp - 0x44], 0
je 0x517f2b
mov dl, 1
mov eax, dword [ebp - 0x44]
call fcn.0040447c
ret
mov eax, dword [ebp - 0xc]
mov edx, dword [0x7070f8]
mov edx, dword [edx + 0x6664]
call fcn.00405908
jne 0x517fe9
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov eax, dword [ebp - 0x34]
call fcn.00422740
mov dword [ebp - 0x44], eax
xor eax, eax
push ebp
push 0x517fe2
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x517fb8
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x44]
call fcn.004221a8
push 0
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 0x68], 0x3d
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.0048d30c
cmp dword [ebp - 0x1c], 0
je 0x517fb8
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x1c]
call fcn.0040a628
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x44]
call fcn.004221c0
test al, al
jne 0x517f76
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5182ac
cmp dword [ebp - 0x44], 0
je 0x517fe1
mov dl, 1
mov eax, dword [ebp - 0x44]
call fcn.0040447c
ret
mov eax, dword [ebp - 0xc]
mov edx, dword [0x7070f8]
mov edx, dword [edx + 0x6668]
call fcn.00405908
jne 0x5182ac
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov eax, dword [ebp - 0x34]
call fcn.00422740
mov dword [ebp - 0x44], eax
xor eax, eax
push ebp
push 0x5182a5
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x518277
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x44]
call fcn.004221a8
push 0
lea eax, [ebp - 0x17c]
push eax
mov byte [ebp - 0x68], 0x3d
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.0048d30c
mov edx, dword [ebp - 0x17c]
lea eax, [ebp - 0x178]
mov ecx, 0xff
call fcn.0040577c
lea edx, [ebp - 0x178]
lea eax, [ebp - 0x59]
mov cl, 0x10
call fcn.00403a2c
or edx, 0xffffffff
mov eax, dword [ebp - 0x18]
call fcn.0040adf8
mov ebx, eax
lea eax, [ebp - 0x184]
lea edx, [ebp - 0x59]
call fcn.00405744
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.0040a628
mov edx, dword [ebp - 0x180]
lea eax, [ebp - 0x178]
mov ecx, 0xff
call fcn.0040577c
lea edx, [ebp - 0x178]
lea eax, [ebp - 0x59]
mov cl, 0x10
call fcn.00403a2c
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, ebx
dec eax
sub eax, 0x63
jae 0x518277
cmp byte [ebp - 0x59], 0
je 0x518277
push dword [ebp - 0xc]
push 0x518444
lea edx, [ebp - 0x18c]
mov eax, ebx
call fcn.0040ab6c
push dword [ebp - 0x18c]
push 0x518444
lea eax, [ebp - 0x190]
lea edx, [ebp - 0x59]
call fcn.00405744
push dword [ebp - 0x190]
lea eax, [ebp - 0x188]
mov edx, 5
call fcn.00405874
mov edx, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
call dword [esi + 0x4c]
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x518277
mov eax, 0x16
call fcn.00402ff0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov byte [eax], bl
mov eax, dword [ebp - 0x3c]
inc eax
lea edx, [ebp - 0x59]
mov cl, 0x10
call fcn.00403a2c
mov dl, 1
mov eax, dword [0x41e408]
call fcn.0040445c
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x12], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x3c]
call fcn.004208c0
mov eax, dword [ebp - 0x38]
call fcn.00422740
mov dword [ebp - 0x48], eax
xor eax, eax
push ebp
push 0x518270
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x518242
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x48]
call fcn.004221a8
push 0
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 0x68], 0x3d
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.0048d30c
lea edx, [ebp - 0x194]
mov eax, dword [ebp - 0x24]
call fcn.0040a628
mov edx, dword [ebp - 0x194]
lea eax, [ebp - 0x24]
call fcn.00405568
cmp dword [ebp - 0x24], 0
je 0x518242
cmp dword [ebp - 0x20], 0
je 0x518242
cmp ebx, 1
jne 0x51820c
mov eax, dword [ebp - 0x28]
add eax, 0x18
mov edx, dword [ebp - 0x24]
call fcn.00405524
mov eax, 0xe
call fcn.00402ff0
mov esi, eax
mov word [esi + 0xc], 0
xor eax, eax
mov dword [esi], eax
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0040f358
fstp qword [esi + 4]
wait
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x12]
mov ecx, esi
mov edx, dword [ebp - 0x24]
mov esi, dword [eax]
call dword [esi + 0x3c]
mov eax, dword [ebp - 0x48]
call fcn.004221c0
test al, al
jne 0x5181ae
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518277
cmp dword [ebp - 0x48], 0
je 0x51826f
mov dl, 1
mov eax, dword [ebp - 0x48]
call fcn.0040447c
ret
mov eax, dword [ebp - 0x44]
call fcn.004221c0
test al, al
jne 0x51802f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5182ac
cmp dword [ebp - 0x44], 0
je 0x5182a4
mov dl, 1
mov eax, dword [ebp - 0x44]
call fcn.0040447c
ret
mov eax, dword [ebp - 0x40]
call fcn.004221c0
test al, al
jne 0x517c64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5182e1
cmp dword [ebp - 0x40], 0
je 0x5182d9
mov dl, 1
mov eax, dword [ebp - 0x40]
call fcn.0040447c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518364
lea eax, [ebp - 0x194]
mov edx, 7
call fcn.004054f4
lea eax, [ebp - 0x78]
mov edx, 4
call fcn.004054f4
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.004054f4
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.004054f4
ret