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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425a8d
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.0040e4e1
test al, al
jne 0x413d72
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], 0x405488
mov dword [esp + 0x120], esi
mov dword [esp + 0x3c], esi
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x124], 1
call fcn.00417730
mov byte [esp + 0x120], 2
cmp ebx, esi
je 0x413dbf
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x413dcd
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 0x413ed5
push 0x18
call fcn.00422929
pop ecx
cmp eax, esi
je 0x413df7
mov dword [eax + 4], esi
mov dword [eax], 0x405528
mov edi, eax
jmp 0x413df9
xor edi, edi
mov dword [esp + 0x30], edi
cmp edi, esi
je 0x413e07
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.00422929
pop ecx
cmp eax, esi
je 0x413e57
mov dword [eax + 4], esi
mov dword [eax], 0x405518
mov dword [eax + 8], esi
mov ebx, eax
jmp 0x413e59
xor ebx, ebx
mov dword [esp + 0x2c], ebx
cmp ebx, esi
je 0x413e67
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
lea esi, [ebx + 8]
mov byte [esp + 0x120], 4
call fcn.00412855
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.00418156
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 0x413dde
mov edi, eax
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
call fcn.00413cc0
mov dword [esp + 0x100], esi
mov dword [esp + 0x104], esi
mov dword [esp + 0x108], esi
mov dword [esp + 0x10c], 8
mov dword [esp + 0xfc], 0x405298
lea eax, [esp + 0xac]
mov byte [esp + 0x120], 5
call fcn.00413a6a
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x413f4a
lea esi, [edi + 4]
lea eax, [esp + 0xac]
call fcn.00413b89
neg al
sbb al, al
inc al
je 0x4141d9
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 0x413f6d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebx], 0
cmp byte [edi + 0x68], 0
je 0x413faf
push 0x88
call fcn.00422929
pop ecx
test eax, eax
je 0x413f8b
mov esi, eax
call fcn.00414909
jmp 0x413f8d
xor eax, eax
mov dword [edi + 0x6c], eax
mov edi, eax
mov esi, ebx
call fcn.00412855
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x6c]
test eax, eax
je 0x413fa8
add eax, 4
jmp 0x413faa
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 0x41402f
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 6
call fcn.00412870
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e3d6
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 0x414016
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [esp + 0x120], 0xffffffff
lea eax, [esp + 0x6c]
push eax
call fcn.00411695
mov eax, esi
jmp 0x413d5a
and dword [esp + 0x24], 0
cmp dword [esp + 0x20], 0
jle 0x4141a5
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.00412803
mov dword [esp + 0x2c], eax
cmp eax, ebx
jne 0x4143d3
mov dword [esp + 0x30], ebx
mov byte [esp + 0x120], 0xc
cmp dword [esi + 0x14], 1
jne 0x4140d7
cmp dword [esi + 0x18], 1
jne 0x4140d7
cmp dword [esp + 0x14], ebx
je 0x41445a
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 0x414119
mov edi, dword [edi + 0x6c]
mov ecx, edi
call fcn.00417d75
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.00412855
jmp 0x414116
cmp dword [esp + 0x18], ebx
je 0x4144cc
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 0x414119
mov edi, dword [edi + 0x6c]
mov ecx, edi
call fcn.00417d75
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.00412855
mov edi, dword [ebp + 8]
push 4
call fcn.00422929
mov esi, eax
pop ecx
mov dword [esp + 0x2c], esi
mov byte [esp + 0x120], 0x11
test esi, esi
je 0x414141
mov dword [esi], ebx
test ebx, ebx
je 0x414143
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
jmp 0x414143
xor esi, esi
mov byte [esp + 0x120], 0xc
push esi
mov esi, dword [esp + 0x20]
call fcn.00414a06
mov byte [esp + 0x120], 9
test ebx, ebx
je 0x414167
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov byte [esp + 0x120], 8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41417d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x414193
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 0x41403f
lea esi, [edi + 4]
lea eax, [esp + 0xac]
call fcn.0041495e
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.00411a23
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 0x4145c3
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 0x405200
push eax
call dword [ecx]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x41426c
mov ecx, dword [esi + 0xc]
cmp ecx, 0xffffffff
ja 0x414651
cmp ecx, ebx
jbe 0x41426c
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 0x414695
mov eax, dword [esp + 0x24]
mov byte [esp + 0x120], 5
cmp eax, ebx
je 0x41427e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp + 0x24], 0
je 0x4142d8
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 0x405220
push eax
call dword [ecx]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4142c6
push dword [ebp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x414706
mov eax, dword [esp + 0x18]
mov byte [esp + 0x120], 5
cmp eax, ebx
je 0x4142d8
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, 0x405298
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.004128cf
mov ebx, dword [esp + 0x28]
lea esi, [esp + 0x94]
call fcn.004128cf
test ebx, ebx
jbe 0x414383
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.00414a06
inc dword [esp + 0x30]
dec ebx
jne 0x414362
and dword [esp + 0x28], 0
cmp dword [esp + 0x1c], 0
jbe 0x41456d
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 0x1c]
xor esi, esi
test edx, edx
jle 0x4143b6
mov ecx, dword [eax + 0x20]
cmp dword [ecx], ebx
je 0x414515
inc esi
add ecx, 8
cmp esi, edx
jl 0x4143a6
or ecx, 0xffffffff
test ecx, ecx
js 0x41451c
mov edx, dword [eax + 0x20]
mov ecx, dword [edx + ecx*8 + 4]
mov eax, dword [eax + 0x48]
lea eax, [eax + ecx*8]
jmp 0x414549
mov byte [esp + 0x120], 8
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4143e9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4143ff
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0xa
call fcn.00412870
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e3d6
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 0x414451
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x2c]
jmp 0x414016
mov byte [esp + 0x120], 8
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x414470
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0xd
call fcn.00412870
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e3d6
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 0x4144c2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x80004001
jmp 0x414016
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4144e2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0xf
call fcn.00412870
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e3d6
mov byte [esp + 0x120], 0x10
jmp 0x4144a1
mov ecx, esi
jmp 0x4143b9
mov ecx, dword [eax + 0x30]
xor edx, edx
test ecx, ecx
jle 0x414538
mov eax, dword [eax + 0x34]
cmp dword [eax], ebx
je 0x41464a
inc edx
add eax, 4
cmp edx, ecx
jl 0x414528
or eax, 0xffffffff
test eax, eax
js 0x414777
mov ecx, dword [ebp + 0x14]
lea eax, [ecx + eax*8]
push eax
lea esi, [esp + 0x84]
call fcn.00414a06
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
inc ebx
mov dword [esp + 0x2c], ebx
cmp eax, dword [esp + 0x1c]
jb 0x414397
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.00412870
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 5
call fcn.00412870
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x20]
jl 0x4141fd
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.0041399c
cmp byte [edi + 0x68], 0
je 0x4145f1
mov eax, dword [edi + 0x6c]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x70], ecx
cmp dword [esp + 0x20], esi
jne 0x4147fb
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x1e
call fcn.00412870
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e3d6
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 0x41400e
mov eax, edx
jmp 0x41453b
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.00412870
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e3d6
mov byte [esp + 0x120], 0x14
jmp 0x4144a1
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4146ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x15
call fcn.00412870
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e3d6
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 0x4146fd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x28]
jmp 0x414016
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41471c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x18
call fcn.00412870
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e3d6
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 0x41476e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x1c]
jmp 0x414016
lea ecx, [esp + 0x94]
mov byte [esp + 0x120], 0x1a
call fcn.00412870
lea ecx, [esp + 0x80]
mov byte [esp + 0x120], 5
call fcn.00412870
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x1c
call fcn.00412870
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e3d6
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 0x4147f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 0x80004005
jmp 0x414016
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 4
mov dword [esp + 0x58], 0x405298
mov byte [esp + 0x120], 0x20
mov ebx, dword [esp + 0x74]
lea esi, [esp + 0x58]
call fcn.004128cf
xor ebx, ebx
cmp dword [esp + 0x74], ebx
jle 0x41485c
mov eax, dword [esp + 0x78]
mov eax, dword [eax + ebx*4]
mov esi, dword [eax]
lea eax, [esp + 0x58]
call fcn.0041289b
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 0x414834
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.00412870
lea ecx, [esp + 0xfc]
mov byte [esp + 0x120], 0x21
call fcn.00412870
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x124], 2
call fcn.0040e3d6
mov byte [esp + 0x120], 0x22
jmp 0x413ff5