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

Disassembly:
push 0xffffffffffffffff
push 0x482270
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4a6554]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6554]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x88]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
call fcn.00410030
push eax
mov dword [esp + 0x68], 0
call fcn.004170a0
mov dword [esp + 0x68], 0xffffffff
mov ebp, dword [esp + 0x2c]
add esp, 4
test ebp, ebp
mov esi, eax
mov dword [esp + 0x20], esi
je 0x4167ac
push 0
lea ecx, [esp + 0x1c]
call fcn.00445d8b
mov eax, dword [ebp + 4]
test eax, eax
jbe 0x41678a
cmp eax, 0xffffffff
jae 0x41678a
add eax, 0xffffffff
mov dword [ebp + 4], eax
mov edi, dword [ebp + 4]
neg edi
sbb edi, edi
not edi
lea ecx, [esp + 0x18]
and edi, ebp
call fcn.00445dac
test edi, edi
je 0x4167ac
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.00416f00
mov ecx, 1
mov dword [esp + 0x64], ecx
mov al, byte [ebx]
cmp al, 0x2b
je 0x4167ee
cmp al, 0x2d
je 0x4167ee
cmp al, 0x30
jne 0x4167e4
mov al, byte [ebx + 1]
cmp al, 0x78
je 0x4167da
cmp al, 0x58
jne 0x4167e4
mov dword [esp + 0x18], 2
jmp 0x4167f2
mov dword [esp + 0x18], 0
jmp 0x4167f2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x54]
cmp ecx, 0x10
mov edx, dword [esp + 0x40]
mov eax, edx
jae 0x416805
lea eax, [esp + 0x40]
cmp byte [eax], 0x7f
je 0x416891
cmp ecx, 0x10
mov eax, edx
jae 0x416819
lea eax, [esp + 0x40]
cmp byte [eax], 0
jle 0x416891
cmp ecx, 0x10
jb 0x416829
mov dword [esp + 0x1c], edx
jmp 0x416831
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1c]
mov al, byte [edx]
cmp al, 0x7f
mov edi, dword [esp + 0x8c]
mov esi, edi
je 0x416898
test al, al
jle 0x416898
mov ecx, esi
sub ecx, dword [esp + 0x18]
movsx eax, al
cmp eax, ecx
jae 0x416898
sub esi, eax
mov edx, edi
sub edx, esi
lea eax, [edx + 1]
push eax
lea ebp, [ebx + esi]
push ebp
push eax
lea eax, [ebx + esi + 1]
push eax
call fcn.00446e4b
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov byte [ebp], 0
add edi, 1
cmp byte [eax + 1], 0
jle 0x416889
add eax, 1
mov dword [esp + 0x1c], eax
mov al, byte [eax]
cmp al, 0x7f
jne 0x416844
jmp 0x416898
mov edi, dword [esp + 0x8c]
mov eax, dword [esp + 0x24]
mov ebp, dword [eax + 0x18]
test ebp, ebp
jle 0x4168ab
cmp ebp, edi
jbe 0x4168ab
sub ebp, edi
jmp 0x4168ad
xor ebp, ebp
mov eax, dword [eax + 0x10]
mov esi, dword [esp + 0x6c]
and eax, 0x1c0
cmp eax, 0x40
je 0x4169b4
cmp eax, 0x100
mov edx, dword [esp + 0x74]
je 0x41691e
mov ecx, dword [esp + 0x84]
push ebp
push ecx
mov ecx, dword [esp + 0x80]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x90]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 0x44]
push eax
push esi
call fcn.00416a80
mov ecx, dword [eax]
mov dword [esp + 0x90], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x94], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x98], eax
jmp 0x4169af
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x7c]
push ebx
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x90]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 0x44]
push eax
push esi
call fcn.00416da0
mov ecx, dword [eax]
mov dword [esp + 0x90], ecx
mov edx, dword [eax + 4]
add esp, 0x1c
mov dword [esp + 0x78], edx
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x18]
push ebp
push edx
mov edx, dword [eax]
sub esp, 0xc
add ebx, ecx
sub edi, ecx
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
lea ecx, [esp + 0x44]
push ecx
push esi
call fcn.00416a80
mov edx, dword [eax]
mov dword [esp + 0x90], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x98], edx
add esp, 0x1c
xor ebp, ebp
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov byte [esp + 0x20], al
mov eax, dword [esp + 0x20]
push eax
push edi
push ebx
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 4], edx
lea edx, [esp + 0x48]
push edx
push esi
mov dword [eax + 8], ecx
call fcn.00416e20
mov edx, dword [eax]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x94], edx
mov edi, dword [eax + 4]
add esp, 0x20
mov dword [esp + 0x78], edi
mov eax, dword [eax + 8]
mov dword [ecx + 0x18], 0
mov ecx, dword [esp + 0x84]
push ebp
push ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 4], edi
mov edi, dword [esp + 0x40]
push edi
push esi
mov dword [esp + 0x98], eax
mov dword [ecx + 8], eax
call fcn.00416a80
add esp, 0x1c
cmp dword [esp + 0x54], 0x10
jb 0x416a51
mov edx, dword [esp + 0x40]
push edx
call fcn.00446c0b
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00447fc5
add esp, 0x54
ret