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

Disassembly:
push 0xffffffffffffffff
push 0x468d09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x5c], edi
xor esi, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x180], ebx
cmp eax, 0xffffffff
je 0x416c01
mov edx, dword [esp + 0x188]
lea ecx, [esp + 0x60]
push ecx
push ebx
push edx
push eax
call fcn.004099e0
mov ecx, eax
call fcn.0040a330
cmp eax, ebx
je 0x416c01
push ebp
mov ebp, dword [esp + 0x194]
push ebx
lea eax, [esp + 0x7c]
push 0x104
push eax
lea ecx, [esp + 0x70]
push ebx
push ecx
call fcn.004099e0
mov ecx, eax
call fcn.0040a290
test eax, eax
je 0x416be2
lea edx, [esp + 0x78]
push str.AddReg
push edx
call fcn.0044dee0
add esp, 8
test eax, eax
je 0x416730
lea eax, [esp + 0x78]
push str.DelReg
push eax
call fcn.0044dee0
add esp, 8
test eax, eax
jne 0x416be2
cmp dword [esp + 0x198], ebx
je 0x416be2
push ebx
lea ecx, [esp + 0x7c]
push 0x104
push ecx
lea edx, [esp + 0x70]
push 1
push edx
mov dword [esp + 0x24], 1
call fcn.004099e0
mov ecx, eax
call fcn.0040a290
test eax, eax
je 0x416be2
mov edx, dword [edi + 0x1c]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x7c]
push ebx
push ecx
push edx
call fcn.004099e0
mov ecx, eax
call fcn.0040a330
cmp eax, ebx
je 0x416bb4
push ebx
lea eax, [esp + 0x7c]
push 0x104
push eax
lea ecx, [esp + 0x5c]
push 1
push ecx
call fcn.004099e0
mov ecx, eax
call fcn.0040a290
test eax, eax
je 0x416b92
mov eax, dword [esp + 0x190]
lea edx, [esp + 0x78]
push edx
push eax
call fcn.0044dee0
add esp, 8
test eax, eax
jne 0x416b92
lea edi, [esp + 0x78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416808
lea edi, [esp + 0x78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x18]
call fcn.00404e90
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x416832
push 1
lea ecx, [esp + 0x18]
call fcn.00404e90
mov edi, 0x489420
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x416849
mov byte [eax], bl
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x41685e
mov esi, 1
mov byte [eax], bl
mov dword [esp + 0x34], esi
jmp 0x416863
mov esi, 1
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x416871
mov byte [eax], bl
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x41687f
mov byte [eax], bl
mov dword [esp + 0x4c], esi
push ebx
lea ecx, [esp + 0x7c]
push 0x104
push ecx
lea edx, [esp + 0x5c]
push 2
push edx
call fcn.004099e0
mov ecx, eax
call fcn.0040a290
test eax, eax
je 0x416915
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4168e7
lea edi, [esp + 0x78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x24]
call fcn.00404e90
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x416910
push esi
lea ecx, [esp + 0x24]
call fcn.00404e90
mov edi, 0x489420
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea eax, [esp + 0x7c]
push 0x104
push eax
lea ecx, [esp + 0x5c]
push 3
push ecx
call fcn.004099e0
mov ecx, eax
call fcn.0040a290
test eax, eax
je 0x4169ac
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41697d
lea edi, [esp + 0x78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x30]
call fcn.00404e90
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x4169a7
push 1
lea ecx, [esp + 0x30]
call fcn.00404e90
mov edi, 0x489420
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x7c]
push 0x104
push ecx
lea edx, [esp + 0x5c]
push 4
push edx
call fcn.004099e0
mov ecx, eax
call fcn.0040a290
test eax, eax
je 0x416a43
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416a14
lea edi, [esp + 0x78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x3c]
call fcn.00404e90
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x416a3e
push 1
lea ecx, [esp + 0x3c]
call fcn.00404e90
mov edi, 0x489420
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea eax, [esp + 0x7c]
push 0x104
push eax
lea ecx, [esp + 0x5c]
push 5
push ecx
call fcn.004099e0
mov ecx, eax
call fcn.0040a290
test eax, eax
je 0x416ada
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416aab
lea edi, [esp + 0x78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x48]
call fcn.00404e90
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x416ad5
push 1
lea ecx, [esp + 0x48]
call fcn.00404e90
mov edi, 0x489420
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp]
cmp esi, 0x1f4
jae 0x416b8d
lea ecx, [esi + 1]
cmp esi, 0xffffffff
mov dword [ebp], ecx
je 0x416b8d
push 0x3c
call fcn.00460d6f
add esp, 4
mov dword [esp + 0x74], eax
cmp eax, ebx
mov byte [esp + 0x184], 1
je 0x416b1b
mov ecx, eax
call fcn.00416c40
jmp 0x416b1d
xor eax, eax
mov dword [ebp + esi*4 + 0x1f8], eax
mov edx, dword [esp + 0x20]
push edx
lea ecx, [eax + 0xc]
mov byte [esp + 0x188], bl
call fcn.00404f10
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + esi*4 + 0x1f8]
push eax
call fcn.00404f10
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [ebp + esi*4 + 0x1f8]
add ecx, 0x30
call fcn.00404f10
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebp + esi*4 + 0x1f8]
push edx
add ecx, 0x18
call fcn.00404f10
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + esi*4 + 0x1f8]
push eax
add ecx, 0x24
call fcn.00404f10
push esi
mov ecx, ebp
call fcn.004157d0
mov esi, 1
lea ecx, [esp + 0x50]
lea edx, [esp + 0x50]
push ecx
push edx
call fcn.004099e0
mov ecx, eax
call fcn.0040a250
cmp eax, ebx
jne 0x416781
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x7c]
inc eax
push 0x104
push ecx
lea edx, [esp + 0x70]
push eax
push edx
mov dword [esp + 0x24], eax
call fcn.004099e0
mov ecx, eax
call fcn.0040a290
test eax, eax
jne 0x41675e
lea eax, [esp + 0x64]
lea ecx, [esp + 0x64]
push eax
push ecx
call fcn.004099e0
mov ecx, eax
call fcn.0040a250
cmp eax, ebx
jne 0x4166ce
pop ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], 0xffffffff
call fcn.0040a9e0
mov ecx, dword [esp + 0x178]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x178
ret 0x10