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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426d68
mov eax, dword fs:[0]
push eax
sub esp, 0x108
push ebx
push esi
push edi
mov eax, dword [0x42a050]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0x18]
mov ecx, edi
call fcn.0040ec8b
test al, al
jne 0x414735
mov eax, 0x80004001
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
xor esi, esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], 4
mov dword [esp + 0x6c], 0x405808
mov dword [esp + 0x120], esi
mov dword [esp + 0x3c], esi
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x124], 1
call fcn.004182c9
mov byte [esp + 0x120], 2
cmp ebx, esi
je 0x414782
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x414790
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], esi
cmp dword [edi + 0x30], esi
jle 0x414898
push 0x18
call fcn.004239d6
pop ecx
cmp eax, esi
je 0x4147ba
mov dword [eax + 4], esi
mov dword [eax], 0x4057ec
mov edi, eax
jmp 0x4147bc
xor edi, edi
mov dword [esp + 0x30], edi
cmp edi, esi
je 0x4147ca
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x120], 3
lea eax, [esp + 0x3c]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*8]
mov ecx, dword [eax]
add dword [ebp + 0xc], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 4]
adc dword [ebp + 0x10], eax
push 0x28
call fcn.004239d6
pop ecx
cmp eax, esi
je 0x41481a
mov dword [eax + 4], esi
mov dword [eax], 0x4057dc
mov dword [eax + 8], esi
mov ebx, eax
jmp 0x41481c
xor ebx, ebx
mov dword [esp + 0x2c], ebx
cmp ebx, esi
je 0x41482a
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
lea esi, [ebx + 8]
mov byte [esp + 0x120], 4
call fcn.00413084
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
and dword [ebx + 0x18], 0
and dword [ebx + 0x1c], 0
mov dword [ebx + 0x10], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x70]
push eax
mov dword [ebx + 0x14], ecx
mov byte [ebx + 0x20], 0
call fcn.00418d4e
mov byte [esp + 0x120], 3
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov byte [esp + 0x120], 2
mov eax, dword [edi]
push edi
call dword [eax + 8]
inc dword [esp + 0x20]
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x20]
xor esi, esi
cmp ecx, dword [eax + 0x30]
jl 0x4147a1
mov edi, eax
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
call fcn.0041467e
mov dword [esp + 0x100], esi
mov dword [esp + 0x104], esi
mov dword [esp + 0x108], esi
mov dword [esp + 0x10c], 8
mov dword [esp + 0xfc], 0x4058ec
lea eax, [esp + 0xac]
mov byte [esp + 0x120], 5
call fcn.00414414
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x41490d
lea esi, [edi + 4]
lea eax, [esp + 0xac]
call fcn.00414538
neg al
sbb al, al
inc al
je 0x414b9c
lea ecx, [edi + 0x78]
push dword [ecx + 8]
mov eax, dword [ecx]
push 0
mov dword [esp + 0x24], ecx
call dword [eax + 4]
lea ebx, [edi + 0x74]
mov eax, dword [ebx]
test eax, eax
je 0x414930
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebx], 0
cmp byte [edi + 0x68], 0
je 0x414972
push 0x88
call fcn.004239d6
pop ecx
test eax, eax
je 0x41494e
mov esi, eax
call fcn.004152d6
jmp 0x414950
xor eax, eax
mov dword [edi + 0x6c], eax
mov edi, eax
mov esi, ebx
call fcn.00413084
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x6c]
test eax, eax
je 0x41496b
add eax, 4
jmp 0x41496d
xor eax, eax
mov dword [ecx + 0x70], eax
mov edi, ecx
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx]
lea edx, [esp + 0xac]
push edx
call dword [eax]
mov esi, eax
test esi, esi
je 0x4149f2
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 6
call fcn.004130a4
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040eb62
mov byte [esp + 0x120], 7
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [esp + 0x120], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4149d9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [esp + 0x120], 0xffffffff
lea eax, [esp + 0x6c]
push eax
call fcn.004153e7
mov eax, esi
jmp 0x41471d
and dword [esp + 0x24], 0
cmp dword [esp + 0x20], 0
jle 0x414b68
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x24]
mov esi, dword [eax + ecx*4]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x128], 9
push dword [esi + 4]
push dword [esi]
call fcn.0041303a
mov dword [esp + 0x2c], eax
cmp eax, ebx
jne 0x414d96
mov dword [esp + 0x30], ebx
mov byte [esp + 0x120], 0xc
cmp dword [esi + 0x14], 1
jne 0x414a9a
cmp dword [esi + 0x18], 1
jne 0x414a9a
cmp dword [esp + 0x14], ebx
je 0x414e1d
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
cmp byte [edi + 0x68], 0
mov dword [esp + 0x30], ebx
je 0x414adc
mov edi, dword [edi + 0x6c]
mov ecx, edi
call fcn.00418954
mov eax, dword [edi + 0x7c]
mov ecx, dword [edi + 0x80]
mov esi, dword [ecx + eax*4 - 4]
lea esi, [esi + 0x14]
mov edi, ebx
call fcn.00413084
jmp 0x414ad9
cmp dword [esp + 0x18], ebx
je 0x414e8f
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
cmp byte [edi + 0x68], 0
mov dword [esp + 0x30], ebx
je 0x414adc
mov edi, dword [edi + 0x6c]
mov ecx, edi
call fcn.00418954
mov eax, dword [edi + 0x7c]
mov ecx, dword [edi + 0x80]
mov esi, dword [ecx + eax*4 - 4]
lea esi, [esi + 0x18]
mov edi, ebx
call fcn.00413084
mov edi, dword [ebp + 8]
push 4
call fcn.004239d6
mov esi, eax
pop ecx
mov dword [esp + 0x2c], esi
mov byte [esp + 0x120], 0x11
test esi, esi
je 0x414b04
mov dword [esi], ebx
test ebx, ebx
je 0x414b06
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
jmp 0x414b06
xor esi, esi
mov byte [esp + 0x120], 0xc
push esi
mov esi, dword [esp + 0x20]
call fcn.004120f6
mov byte [esp + 0x120], 9
test ebx, ebx
je 0x414b2a
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov byte [esp + 0x120], 8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x414b40
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x414b56
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [esp + 0x24]
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x20]
jl 0x414a02
lea esi, [edi + 4]
lea eax, [esp + 0xac]
call fcn.00415330
push dword [esi + 0x58]
mov eax, dword [esi + 0x50]
push 0
lea ecx, [esi + 0x50]
call dword [eax + 4]
lea edi, [esp + 0xfc]
lea eax, [esi + 0x50]
call fcn.004121f6
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov edi, eax
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
cmp dword [esp + 0x20], esi
jle 0x414f86
mov dword [esp + 0x38], esi
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx*4]
mov eax, dword [edi + 0x84]
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + eax]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x124], 0x12
mov eax, dword [eax]
mov ecx, dword [eax]
push 0x4054c0
push eax
call dword [ecx]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x414c2f
mov ecx, dword [esi + 0xc]
cmp ecx, 0xffffffff
ja 0x415014
cmp ecx, ebx
jbe 0x414c2f
mov edx, dword [eax]
push ecx
push dword [esi + 0x10]
push eax
call dword [edx + 0xc]
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x415058
mov eax, dword [esp + 0x24]
mov byte [esp + 0x120], 5
cmp eax, ebx
je 0x414c41
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp + 0x24], 0
je 0x414c9b
mov dword [esp + 0x18], ebx
mov byte [esp + 0x120], 0x17
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x4054e0
push eax
call dword [ecx]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x414c89
push dword [ebp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x4150c9
mov eax, dword [esp + 0x18]
mov byte [esp + 0x120], 5
cmp eax, ebx
je 0x414c9b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
push 4
pop ecx
add dword [esp + 0x38], ecx
mov dword [esp + 0x28], eax
mov eax, 0x4058ec
mov dword [esp + 0x1c], edx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x94], eax
mov ebx, edx
lea esi, [esp + 0x80]
mov byte [esp + 0x120], 0x1b
call fcn.0041310d
mov ebx, dword [esp + 0x28]
lea esi, [esp + 0x94]
call fcn.0041310d
test ebx, ebx
jbe 0x414d46
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x48]
mov ecx, dword [esp + 0x30]
lea eax, [eax + ecx*8]
push eax
lea esi, [esp + 0x98]
call fcn.004120f6
inc dword [esp + 0x30]
dec ebx
jne 0x414d25
and dword [esp + 0x28], 0
cmp dword [esp + 0x1c], 0
jbe 0x414f30
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 0x1c]
xor esi, esi
test edx, edx
jle 0x414d79
mov ecx, dword [eax + 0x20]
cmp dword [ecx], ebx
je 0x414ed8
inc esi
add ecx, 8
cmp esi, edx
jl 0x414d69
or ecx, 0xffffffff
test ecx, ecx
js 0x414edf
mov edx, dword [eax + 0x20]
mov ecx, dword [edx + ecx*8 + 4]
mov eax, dword [eax + 0x48]
lea eax, [eax + ecx*8]
jmp 0x414f0c
mov byte [esp + 0x120], 8
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x414dac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x414dc2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0xa
call fcn.004130a4
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040eb62
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x124], 0xb
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [esp + 0x120], 0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x414e14
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x2c]
jmp 0x4149d9
mov byte [esp + 0x120], 8
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x414e33
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0xd
call fcn.004130a4
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040eb62
mov byte [esp + 0x120], 0xe
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [esp + 0x120], 0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x414e85
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x80004001
jmp 0x4149d9
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x414ea5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0xf
call fcn.004130a4
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040eb62
mov byte [esp + 0x120], 0x10
jmp 0x414e64
mov ecx, esi
jmp 0x414d7c
mov ecx, dword [eax + 0x30]
xor edx, edx
test ecx, ecx
jle 0x414efb
mov eax, dword [eax + 0x34]
cmp dword [eax], ebx
je 0x41500d
inc edx
add eax, 4
cmp edx, ecx
jl 0x414eeb
or eax, 0xffffffff
test eax, eax
js 0x41513a
mov ecx, dword [ebp + 0x14]
lea eax, [ecx + eax*8]
push eax
lea esi, [esp + 0x84]
call fcn.004120f6
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
inc ebx
mov dword [esp + 0x2c], ebx
cmp eax, dword [esp + 0x1c]
jb 0x414d5a
push dword [esp + 0xa0]
mov ecx, dword [edi + 0x70]
push dword [esp + 0x90]
mov eax, dword [ecx]
push dword [esp + 0x1c]
call dword [eax + 8]
lea ecx, [esp + 0x94]
mov byte [esp + 0x120], 0x1a
call fcn.004130a4
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 5
call fcn.004130a4
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x20]
jl 0x414bc0
xor esi, esi
mov ecx, dword [esp + 0xf4]
mov ecx, dword [ecx]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
lea edx, [esp + 0xb0]
call fcn.00414310
cmp byte [edi + 0x68], 0
je 0x414fb4
mov eax, dword [edi + 0x6c]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x70], ecx
cmp dword [esp + 0x20], esi
jne 0x4151be
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x1e
call fcn.004130a4
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040eb62
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x124], 0x1f
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [esp + 0x120], 0
mov eax, dword [esp + 0x3c]
cmp eax, esi
jmp 0x4149d1
mov eax, edx
jmp 0x414efe
mov byte [esp + 0x120], 5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x13
call fcn.004130a4
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040eb62
mov byte [esp + 0x120], 0x14
jmp 0x414e64
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x41506e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x15
call fcn.004130a4
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040eb62
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x124], 0x16
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [esp + 0x120], 0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x4150c0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x28]
jmp 0x4149d9
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4150df
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x18
call fcn.004130a4
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040eb62
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x124], 0x19
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [esp + 0x120], 0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x415131
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x1c]
jmp 0x4149d9
lea ecx, [esp + 0x94]
mov byte [esp + 0x120], 0x1a
call fcn.004130a4
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 5
call fcn.004130a4
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x1c
call fcn.004130a4
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040eb62
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x124], 0x1d
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [esp + 0x120], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4151b4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x80004005
jmp 0x4149d9
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 4
mov dword [esp + 0x58], 0x4058ec
mov byte [esp + 0x120], 0x20
mov ebx, dword [esp + 0x74]
lea esi, [esp + 0x58]
call fcn.0041310d
xor ebx, ebx
cmp dword [esp + 0x74], ebx
jle 0x41521f
mov eax, dword [esp + 0x78]
mov eax, dword [eax + ebx*4]
mov esi, dword [eax]
lea eax, [esp + 0x58]
call fcn.004130d4
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [ecx + eax*4], esi
inc dword [esp + 0x60]
inc ebx
cmp ebx, dword [esp + 0x74]
jl 0x4151f7
push dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push 1
push 0
lea edx, [esp + 0xb4]
push edx
push dword [esp + 0x84]
mov dword [esp + 0xbc], eax
mov eax, dword [edi + 0x74]
mov ecx, dword [eax]
push 0
push dword [esp + 0x7c]
push eax
call dword [ecx + 0xc]
lea ecx, [esp + 0x58]
mov esi, eax
mov byte [esp + 0x120], 5
call fcn.004130a4
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x21
call fcn.004130a4
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040eb62
mov byte [esp + 0x120], 0x22
jmp 0x4149b8