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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426978
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.0040e749
test al, al
jne 0x4142b3
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], 0x40556c
mov dword [esp + 0x120], esi
mov dword [esp + 0x3c], esi
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x124], 1
call fcn.00417e82
mov byte [esp + 0x120], 2
cmp ebx, esi
je 0x414300
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x41430e
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 0x414416
push 0x18
call fcn.004235e6
pop ecx
cmp eax, esi
je 0x414338
mov dword [eax + 4], esi
mov dword [eax], 0x405550
mov edi, eax
jmp 0x41433a
xor edi, edi
mov dword [esp + 0x30], edi
cmp edi, esi
je 0x414348
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.004235e6
pop ecx
cmp eax, esi
je 0x414398
mov dword [eax + 4], esi
mov dword [eax], 0x405540
mov dword [eax + 8], esi
mov ebx, eax
jmp 0x41439a
xor ebx, ebx
mov dword [esp + 0x2c], ebx
cmp ebx, esi
je 0x4143a8
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
lea esi, [ebx + 8]
mov byte [esp + 0x120], 4
call fcn.00412bb6
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.00418911
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 0x41431f
mov edi, eax
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
call fcn.004141fa
mov dword [esp + 0x100], esi
mov dword [esp + 0x104], esi
mov dword [esp + 0x108], esi
mov dword [esp + 0x10c], 8
mov dword [esp + 0xfc], 0x4052d4
lea eax, [esp + 0xac]
mov byte [esp + 0x120], 5
call fcn.00413f8a
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x41448b
lea esi, [edi + 4]
lea eax, [esp + 0xac]
call fcn.004140b0
neg al
sbb al, al
inc al
je 0x41471a
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 0x4144ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebx], 0
cmp byte [edi + 0x68], 0
je 0x4144f0
push 0x88
call fcn.004235e6
pop ecx
test eax, eax
je 0x4144cc
mov esi, eax
call fcn.00414e54
jmp 0x4144ce
xor eax, eax
mov dword [edi + 0x6c], eax
mov edi, eax
mov esi, ebx
call fcn.00412bb6
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x6c]
test eax, eax
je 0x4144e9
add eax, 4
jmp 0x4144eb
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 0x414570
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 6
call fcn.00412bd6
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e618
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 0x414557
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [esp + 0x120], 0xffffffff
lea eax, [esp + 0x6c]
push eax
call fcn.00414f70
mov eax, esi
jmp 0x41429b
and dword [esp + 0x24], 0
cmp dword [esp + 0x20], 0
jle 0x4146e6
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.00412b6c
mov dword [esp + 0x2c], eax
cmp eax, ebx
jne 0x414914
mov dword [esp + 0x30], ebx
mov byte [esp + 0x120], 0xc
cmp dword [esi + 0x14], 1
jne 0x414618
cmp dword [esi + 0x18], 1
jne 0x414618
cmp dword [esp + 0x14], ebx
je 0x41499b
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 0x41465a
mov edi, dword [edi + 0x6c]
mov ecx, edi
call fcn.00418513
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.00412bb6
jmp 0x414657
cmp dword [esp + 0x18], ebx
je 0x414a0d
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 0x41465a
mov edi, dword [edi + 0x6c]
mov ecx, edi
call fcn.00418513
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.00412bb6
mov edi, dword [ebp + 8]
push 4
call fcn.004235e6
mov esi, eax
pop ecx
mov dword [esp + 0x2c], esi
mov byte [esp + 0x120], 0x11
test esi, esi
je 0x414682
mov dword [esi], ebx
test ebx, ebx
je 0x414684
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
jmp 0x414684
xor esi, esi
mov byte [esp + 0x120], 0xc
push esi
mov esi, dword [esp + 0x20]
call fcn.00414f46
mov byte [esp + 0x120], 9
test ebx, ebx
je 0x4146a8
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov byte [esp + 0x120], 8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4146be
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4146d4
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 0x414580
lea esi, [edi + 4]
lea eax, [esp + 0xac]
call fcn.00414eba
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.00411d0d
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 0x414b04
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 0x405230
push eax
call dword [ecx]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4147ad
mov ecx, dword [esi + 0xc]
cmp ecx, 0xffffffff
ja 0x414b92
cmp ecx, ebx
jbe 0x4147ad
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 0x414bd6
mov eax, dword [esp + 0x24]
mov byte [esp + 0x120], 5
cmp eax, ebx
je 0x4147bf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp + 0x24], 0
je 0x414819
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 0x405250
push eax
call dword [ecx]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x414807
push dword [ebp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x414c47
mov eax, dword [esp + 0x18]
mov byte [esp + 0x120], 5
cmp eax, ebx
je 0x414819
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, 0x4052d4
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.00412c43
mov ebx, dword [esp + 0x28]
lea esi, [esp + 0x94]
call fcn.00412c43
test ebx, ebx
jbe 0x4148c4
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.00414f46
inc dword [esp + 0x30]
dec ebx
jne 0x4148a3
and dword [esp + 0x28], 0
cmp dword [esp + 0x1c], 0
jbe 0x414aae
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 0x1c]
xor esi, esi
test edx, edx
jle 0x4148f7
mov ecx, dword [eax + 0x20]
cmp dword [ecx], ebx
je 0x414a56
inc esi
add ecx, 8
cmp esi, edx
jl 0x4148e7
or ecx, 0xffffffff
test ecx, ecx
js 0x414a5d
mov edx, dword [eax + 0x20]
mov ecx, dword [edx + ecx*8 + 4]
mov eax, dword [eax + 0x48]
lea eax, [eax + ecx*8]
jmp 0x414a8a
mov byte [esp + 0x120], 8
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41492a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x414940
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0xa
call fcn.00412bd6
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e618
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 0x414992
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x2c]
jmp 0x414557
mov byte [esp + 0x120], 8
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4149b1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0xd
call fcn.00412bd6
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e618
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 0x414a03
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x80004001
jmp 0x414557
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x414a23
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0xf
call fcn.00412bd6
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e618
mov byte [esp + 0x120], 0x10
jmp 0x4149e2
mov ecx, esi
jmp 0x4148fa
mov ecx, dword [eax + 0x30]
xor edx, edx
test ecx, ecx
jle 0x414a79
mov eax, dword [eax + 0x34]
cmp dword [eax], ebx
je 0x414b8b
inc edx
add eax, 4
cmp edx, ecx
jl 0x414a69
or eax, 0xffffffff
test eax, eax
js 0x414cb8
mov ecx, dword [ebp + 0x14]
lea eax, [ecx + eax*8]
push eax
lea esi, [esp + 0x84]
call fcn.00414f46
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
inc ebx
mov dword [esp + 0x2c], ebx
cmp eax, dword [esp + 0x1c]
jb 0x4148d8
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.00412bd6
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 5
call fcn.00412bd6
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x20]
jl 0x41473e
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.00413eae
cmp byte [edi + 0x68], 0
je 0x414b32
mov eax, dword [edi + 0x6c]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x70], ecx
cmp dword [esp + 0x20], esi
jne 0x414d3c
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x1e
call fcn.00412bd6
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e618
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 0x41454f
mov eax, edx
jmp 0x414a7c
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.00412bd6
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e618
mov byte [esp + 0x120], 0x14
jmp 0x4149e2
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x414bec
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x15
call fcn.00412bd6
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e618
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 0x414c3e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x28]
jmp 0x414557
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x414c5d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x18
call fcn.00412bd6
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e618
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 0x414caf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x1c]
jmp 0x414557
lea ecx, [esp + 0x94]
mov byte [esp + 0x120], 0x1a
call fcn.00412bd6
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 5
call fcn.00412bd6
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x1c
call fcn.00412bd6
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e618
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 0x414d32
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x80004005
jmp 0x414557
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 4
mov dword [esp + 0x58], 0x4052d4
mov byte [esp + 0x120], 0x20
mov ebx, dword [esp + 0x74]
lea esi, [esp + 0x58]
call fcn.00412c43
xor ebx, ebx
cmp dword [esp + 0x74], ebx
jle 0x414d9d
mov eax, dword [esp + 0x78]
mov eax, dword [eax + ebx*4]
mov esi, dword [eax]
lea eax, [esp + 0x58]
call fcn.00412c08
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 0x414d75
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.00412bd6
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x21
call fcn.00412bd6
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e618
mov byte [esp + 0x120], 0x22
jmp 0x414536