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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425e8d
mov eax, dword fs:[0]
push eax
sub esp, 0x108
push ebx
push esi
push edi
mov eax, dword [0x428050]
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.0040e7a4
test al, al
jne 0x413f9d
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], 0x4055c4
mov dword [esp + 0x120], esi
mov dword [esp + 0x3c], esi
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x124], 1
call fcn.004179d3
mov byte [esp + 0x120], 2
cmp ebx, esi
je 0x413fea
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x413ff8
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 0x414100
push 0x18
call fcn.00422b89
pop ecx
cmp eax, esi
je 0x414022
mov dword [eax + 4], esi
mov dword [eax], 0x4055a8
mov edi, eax
jmp 0x414024
xor edi, edi
mov dword [esp + 0x30], edi
cmp edi, esi
je 0x414032
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.00422b89
pop ecx
cmp eax, esi
je 0x414082
mov dword [eax + 4], esi
mov dword [eax], 0x405598
mov dword [eax + 8], esi
mov ebx, eax
jmp 0x414084
xor ebx, ebx
mov dword [esp + 0x2c], ebx
cmp ebx, esi
je 0x414092
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
lea esi, [ebx + 8]
mov byte [esp + 0x120], 4
call fcn.00412a56
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.004183f9
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 0x414009
mov edi, eax
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
call fcn.00413eeb
mov dword [esp + 0x100], esi
mov dword [esp + 0x104], esi
mov dword [esp + 0x108], esi
mov dword [esp + 0x10c], 8
mov dword [esp + 0xfc], 0x40530c
lea eax, [esp + 0xac]
mov byte [esp + 0x120], 5
call fcn.00413c95
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x414175
lea esi, [edi + 4]
lea eax, [esp + 0xac]
call fcn.00413db4
neg al
sbb al, al
inc al
je 0x414404
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 0x414198
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebx], 0
cmp byte [edi + 0x68], 0
je 0x4141da
push 0x88
call fcn.00422b89
pop ecx
test eax, eax
je 0x4141b6
mov esi, eax
call fcn.00414b34
jmp 0x4141b8
xor eax, eax
mov dword [edi + 0x6c], eax
mov edi, eax
mov esi, ebx
call fcn.00412a56
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x6c]
test eax, eax
je 0x4141d3
add eax, 4
jmp 0x4141d5
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 0x41425a
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 6
call fcn.00412a71
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e699
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 0x414241
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [esp + 0x120], 0xffffffff
lea eax, [esp + 0x6c]
push eax
call fcn.00414c54
mov eax, esi
jmp 0x413f85
and dword [esp + 0x24], 0
cmp dword [esp + 0x20], 0
jle 0x4143d0
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.00412a04
mov dword [esp + 0x2c], eax
cmp eax, ebx
jne 0x4145fe
mov dword [esp + 0x30], ebx
mov byte [esp + 0x120], 0xc
cmp dword [esi + 0x14], 1
jne 0x414302
cmp dword [esi + 0x18], 1
jne 0x414302
cmp dword [esp + 0x14], ebx
je 0x414685
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 0x414344
mov edi, dword [edi + 0x6c]
mov ecx, edi
call fcn.00418018
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.00412a56
jmp 0x414341
cmp dword [esp + 0x18], ebx
je 0x4146f7
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 0x414344
mov edi, dword [edi + 0x6c]
mov ecx, edi
call fcn.00418018
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.00412a56
mov edi, dword [ebp + 8]
push 4
call fcn.00422b89
mov esi, eax
pop ecx
mov dword [esp + 0x2c], esi
mov byte [esp + 0x120], 0x11
test esi, esi
je 0x41436c
mov dword [esi], ebx
test ebx, ebx
je 0x41436e
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
jmp 0x41436e
xor esi, esi
mov byte [esp + 0x120], 0xc
push esi
mov esi, dword [esp + 0x20]
call fcn.00414c31
mov byte [esp + 0x120], 9
test ebx, ebx
je 0x414392
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov byte [esp + 0x120], 8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4143a8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4143be
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 0x41426a
lea esi, [edi + 4]
lea eax, [esp + 0xac]
call fcn.00414b89
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.00411c24
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 0x4147ee
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 0x405274
push eax
call dword [ecx]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x414497
mov ecx, dword [esi + 0xc]
cmp ecx, 0xffffffff
ja 0x41487c
cmp ecx, ebx
jbe 0x414497
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 0x4148c0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x120], 5
cmp eax, ebx
je 0x4144a9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp + 0x24], 0
je 0x414503
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 0x405294
push eax
call dword [ecx]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4144f1
push dword [ebp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x414931
mov eax, dword [esp + 0x18]
mov byte [esp + 0x120], 5
cmp eax, ebx
je 0x414503
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, 0x40530c
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.00412ad0
mov ebx, dword [esp + 0x28]
lea esi, [esp + 0x94]
call fcn.00412ad0
test ebx, ebx
jbe 0x4145ae
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.00414c31
inc dword [esp + 0x30]
dec ebx
jne 0x41458d
and dword [esp + 0x28], 0
cmp dword [esp + 0x1c], 0
jbe 0x414798
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 0x1c]
xor esi, esi
test edx, edx
jle 0x4145e1
mov ecx, dword [eax + 0x20]
cmp dword [ecx], ebx
je 0x414740
inc esi
add ecx, 8
cmp esi, edx
jl 0x4145d1
or ecx, 0xffffffff
test ecx, ecx
js 0x414747
mov edx, dword [eax + 0x20]
mov ecx, dword [edx + ecx*8 + 4]
mov eax, dword [eax + 0x48]
lea eax, [eax + ecx*8]
jmp 0x414774
mov byte [esp + 0x120], 8
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x414614
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41462a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0xa
call fcn.00412a71
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e699
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 0x41467c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x2c]
jmp 0x414241
mov byte [esp + 0x120], 8
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41469b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0xd
call fcn.00412a71
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e699
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 0x4146ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x80004001
jmp 0x414241
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41470d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0xf
call fcn.00412a71
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e699
mov byte [esp + 0x120], 0x10
jmp 0x4146cc
mov ecx, esi
jmp 0x4145e4
mov ecx, dword [eax + 0x30]
xor edx, edx
test ecx, ecx
jle 0x414763
mov eax, dword [eax + 0x34]
cmp dword [eax], ebx
je 0x414875
inc edx
add eax, 4
cmp edx, ecx
jl 0x414753
or eax, 0xffffffff
test eax, eax
js 0x4149a2
mov ecx, dword [ebp + 0x14]
lea eax, [ecx + eax*8]
push eax
lea esi, [esp + 0x84]
call fcn.00414c31
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
inc ebx
mov dword [esp + 0x2c], ebx
cmp eax, dword [esp + 0x1c]
jb 0x4145c2
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.00412a71
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 5
call fcn.00412a71
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x20]
jl 0x414428
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.00413bc7
cmp byte [edi + 0x68], 0
je 0x41481c
mov eax, dword [edi + 0x6c]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x70], ecx
cmp dword [esp + 0x20], esi
jne 0x414a26
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x1e
call fcn.00412a71
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e699
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 0x414239
mov eax, edx
jmp 0x414766
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.00412a71
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e699
mov byte [esp + 0x120], 0x14
jmp 0x4146cc
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4148d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x15
call fcn.00412a71
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e699
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 0x414928
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x28]
jmp 0x414241
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x414947
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x18
call fcn.00412a71
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e699
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 0x414999
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x1c]
jmp 0x414241
lea ecx, [esp + 0x94]
mov byte [esp + 0x120], 0x1a
call fcn.00412a71
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 5
call fcn.00412a71
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x1c
call fcn.00412a71
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e699
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 0x414a1c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x80004005
jmp 0x414241
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 4
mov dword [esp + 0x58], 0x40530c
mov byte [esp + 0x120], 0x20
mov ebx, dword [esp + 0x74]
lea esi, [esp + 0x58]
call fcn.00412ad0
xor ebx, ebx
cmp dword [esp + 0x74], ebx
jle 0x414a87
mov eax, dword [esp + 0x78]
mov eax, dword [eax + ebx*4]
mov esi, dword [eax]
lea eax, [esp + 0x58]
call fcn.00412a9c
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 0x414a5f
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.00412a71
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x21
call fcn.00412a71
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e699
mov byte [esp + 0x120], 0x22
jmp 0x414220