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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push edi
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0051e127
add esp, 8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x108], 0xffffffff
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0xd8], edx
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0xe4], 0xffffffff
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x104], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xfc], ecx
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x100], edx
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0x5c], 0xffffffff
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0xd4], ecx
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0x118], edx
mov dword [ebp - 0xe8], 0xffffffff
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0x64], 0xffffffff
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0xf4], edx
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xd0], eax
mov ecx, 0x14
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x120]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x124]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x12c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x130]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x134]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x13c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0xe0], 0
jmp 0x516856
mov eax, dword [ebp - 0xe0]
add eax, 1
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
cmp ecx, dword [ebp - 0x114]
jge 0x516c1b
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x58]
cmp eax, dword [edx + 0x168]
jne 0x516897
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x228]
and edx, 4
test edx, edx
jne 0x516897
jmp 0x516847
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x10], 0
je 0x5168c3
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp - 0x10c]
jle 0x5168c3
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0x14], 0
je 0x5168ef
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
cmp eax, dword [ebp - 0x110]
jle 0x5168ef
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0x1c], 0
je 0x51692d
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0xd8]
jle 0x51692d
cmp dword [ebp - 0x54], 0
jne 0x516918
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xfc]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0x24], 0
je 0x516959
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0x108]
jle 0x516959
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x108], edx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x28], 0
je 0x516985
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp - 0x104]
jle 0x516985
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0x2c], 0
je 0x5169b1
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
cmp eax, dword [ebp - 0x11c]
jle 0x5169b1
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0x30], 0
je 0x5169dd
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0xe4]
jle 0x5169dd
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x34], 0
je 0x516a09
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp - 0xfc]
jle 0x516a09
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0x3c], 0
je 0x516a35
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
cmp eax, dword [ebp - 0x118]
jle 0x516a35
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0x44], 0
je 0x516a61
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0xd4]
jle 0x516a61
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x4c], 0
je 0x516a87
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp - 4]
jle 0x516a87
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0x54], 0
je 0x516ab3
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
cmp eax, dword [ebp - 0xd0]
jle 0x516ab3
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x58]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0x5c], 0
je 0x516ad9
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0x5c]
jle 0x516ad9
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x60]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x64], 0
je 0x516b05
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp - 0xec]
jle 0x516b05
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x68]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0x6c], 0
je 0x516b2b
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
cmp eax, dword [ebp - 0x68]
jle 0x516b2b
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x70]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0x74], 0
je 0x516b57
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0xe8]
jle 0x516b57
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x78]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x7c], 0
je 0x516b86
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp - 0xf4]
jle 0x516b86
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0x84], 0
je 0x516bb8
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
cmp eax, dword [ebp - 0xdc]
jle 0x516bb8
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x88]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xdc], ecx
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0x90], 0
je 0x516bea
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0x100]
jle 0x516bea
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x94]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x100], edx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x8c], 0
je 0x516c16
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp - 0x64]
jle 0x516c16
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x8c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
mov dword [ebp - 0x64], eax
jmp 0x516847
cmp dword [ebp - 0x60], 0
je 0x516c2d
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00439ac0
add esp, 4
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x164]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x164]
call dword [ecx + 0x30]
add esp, 0xc
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x70], 0
jne 0x516c81
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp - 0xf8]
mov dword [eax], edx
mov eax, dword [ebp - 0xf8]
jmp 0x516e05
push 0x14
call fcn.00439980
add esp, 4
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ecx], 1
cmp dword [ebp - 0x54], 0
je 0x516d10
mov edx, dword [ebp - 0x54]
push edx
call fcn.005083ef
add esp, 4
mov eax, dword [eax]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xf0], 4
cmp dword [ebp - 0x48], 0
je 0x516ce9
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xac], 2
mov edx, dword [ebp - 0xf0]
or dh, 9
mov dword [ebp - 0xf0], edx
lea eax, [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 0xf0]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00501f00
add esp, 0xc
mov ecx, dword [ebp - 0xf8]
mov dword [ecx + 4], eax
jmp 0x516d1d
mov edx, dword [ebp - 0xf8]
mov dword [edx + 4], 0
mov dword [ebp - 0xf0], 0x4000
mov eax, dword [ebp - 0x40]
push eax
call fcn.004e2734
add esp, 4
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0xf0]
or ecx, 4
mov dword [ebp - 0xf0], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0x3c], 0
je 0x516d7b
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xac], 2
mov edx, dword [ebp - 0xf0]
or dh, 9
mov dword [ebp - 0xf0], edx
lea eax, [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 0xf0]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00501f00
add esp, 0xc
mov ecx, dword [ebp - 0xf8]
mov dword [ecx + 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x164]
cmp dword [eax + 0x28], 1
je 0x516dcc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x164]
cmp dword [edx + 0x28], 0xffffffff
je 0x516dcc
mov eax, dword [ebp - 0x6c]
add eax, 0x10
mov dword [ebp - 0x120], eax
jmp 0x516dd8
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0x120]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0xf8]
mov eax, dword [ebp - 0x6c]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0xf8]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0xf8]
pop edi
mov esp, ebp
pop ebp
ret