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

Disassembly:
sub esp, 0xac
push ebx
mov ebx, dword [esp + 0xb4]
push ebp
push esi
push edi
push dword [ebx + 0x1c]
mov edi, dword [ebx]
call fcn.0040a29b
test eax, eax
jne 0x408712
xor esi, esi
mov dword [esp + 0x98], esi
xor eax, eax
inc eax
cmp dword [edi + 0x24], esi
jne 0x408710
mov edx, dword [edi + 0x30]
mov ecx, edx
mov ebp, dword [edi + 0x34]
add ecx, eax
mov eax, ebp
mov dword [esp + 0x64], ebp
adc eax, esi
mov dword [esp + 0x68], edx
mov dword [edi + 0x34], eax
lea eax, [esp + 0x14]
push eax
push ebp
push edx
xor ebp, ebp
mov dword [edi + 0x30], ecx
push ebp
push ebp
push ebp
push ebp
push edi
call fcn.00407c4f
mov esi, eax
mov dword [esp + 0x84], ebp
mov eax, dword [edi + 0x70]
mov edx, ebp
mov dword [esp + 0x24], esi
xorps xmm0, xmm0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x3c], ebp
movlpd qword [esp + 0x6c], xmm0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x40], ebp
test esi, esi
jne 0x4081f9
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x4081e7
mov ebp, dword [ebx + 8]
mov esi, edx
mov ebx, dword [edi + 0x64]
sub ebx, dword [edi + 0x60]
movlpd qword [esp + 0x4c], xmm0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x18], eax
test ebp, ebp
jne 0x407e3b
mov eax, dword [edi]
mov ecx, dword [edi + 0x14]
add eax, 0x10
push eax
push ecx
call dword [ecx]
mov ebp, eax
test ebp, ebp
je 0x40800c
xor edx, edx
mov dword [ebp], edx
test esi, esi
je 0x407e31
mov dword [esi], ebp
jmp 0x407e3b
mov eax, dword [esp + 0xc0]
mov dword [eax + 8], ebp
lea ecx, [ebp + 0x10]
mov dword [esp + 0x6c], ecx
mov esi, ecx
mov dword [esp + 0x2c], esi
test ebx, ebx
je 0x407e70
mov esi, dword [edi + 0x60]
add esi, 0x10
mov dword [esp + 0x1c], edx
add esi, dword [edi + 0x5c]
mov edx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], esi
jmp 0x407f41
mov eax, dword [edi]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
push eax
push ecx
push dword [edi + 0xc]
call fcn.00401e96
mov edx, dword [esp + 0x44]
mov ecx, eax
add dword [esp + 0x18], edx
push 0
pop eax
adc dword [esp + 0x1c], eax
cmp dword [esp + 0x28], 0
mov eax, dword [esp + 0x3c]
cmove eax, edx
mov dword [esp + 0x24], ecx
add dword [edi + 0x68], edx
mov dword [esp + 0x3c], eax
push 0
pop eax
adc dword [edi + 0x6c], eax
cmp edx, dword [edi]
setne al
mov dword [esp + 0x10], eax
test eax, eax
je 0x407ec7
xor eax, eax
inc eax
mov dword [edi + 0x70], eax
jmp 0x407eca
xor eax, eax
inc eax
test ecx, ecx
je 0x407ede
mov dword [edi + 0x70], eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [edi + 0x48], ecx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
sbb eax, dword [esp + 0x54]
mov dword [esp + 0x94], eax
jne 0x407efe
xor eax, eax
inc eax
cmp ecx, eax
jb 0x407f41
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x68]
xor eax, eax
push dword [esp + 0x70]
push eax
push eax
push eax
push eax
push edi
call fcn.00407c4f
mov dword [esp + 0x24], eax
test eax, eax
jne 0x408174
cmp dword [esp + 0x14], eax
jne 0x408174
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0xa0], esi
cmp dword [esp + 0x28], eax
lea ecx, [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0xc4]
sete al
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xac], eax
xor eax, eax
push dword [ecx + 4]
inc eax
mov dword [esp + 0xac], edx
push dword [edi + 0x1c]
mov dword [esp + 0xbc], eax
mov eax, dword [edi + 0x18]
call dword [eax]
mov eax, dword [esp + 0xb0]
xor ecx, ecx
inc ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x84], ecx
cmp dword [esp + 0xac], ecx
je 0x408143
mov esi, dword [esp + 0xa4]
test ebx, ebx
je 0x407fd2
push esi
push dword [esp + 0x30]
lea eax, [ebp + 0x10]
push eax
call fcn.0043e8a0
add dword [edi + 0x60], esi
xor ecx, ecx
add esp, 0xc
inc ecx
cmp dword [esp + 0xac], 0
mov eax, dword [esp + 0x10]
jne 0x408040
test eax, eax
jne 0x40804f
cmp esi, dword [esp + 0x44]
jne 0x408020
mov esi, ebp
mov ebp, dword [ebp]
mov dword [esp + 0x28], esi
push eax
pop edx
test ebx, ebx
je 0x407e0a
xor edx, edx
mov ebx, edx
mov dword [edi + 0x60], edx
mov dword [edi + 0x64], edx
jmp 0x407e0a
xor ebp, ebp
inc ebp
xor ebx, ebx
mov eax, ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x10], eax
jmp 0x40817d
xor eax, eax
push 0xb
pop esi
mov ebx, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebx
jmp 0x40824d
cmp dword [esp + 0xac], 3
cmove eax, ecx
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x44]
mov edx, ecx
mov dword [esp + 0x20], edx
cmp esi, ebp
jne 0x40806d
xor ebx, ebx
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ebx
xor ebp, ebp
inc ebp
jmp 0x40817f
cmp dword [esp + 0xac], 3
jne 0x4080bc
mov edx, dword [esp + 0x2c]
sub ebp, esi
mov eax, dword [esp + 0x10]
add edx, esi
xor ecx, ecx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x3c]
test ebx, ebx
push 0
setne cl
mov dword [esp + 0x38], ebp
sub dword [esp + 0x1c], ebp
pop ebx
sbb dword [esp + 0x1c], ebx
cmp dword [esp + 0x28], ebx
mov dword [esp + 0x30], ecx
cmove edx, esi
xor ebp, ebp
mov dword [esp + 0x3c], edx
inc ebp
mov edx, dword [esp + 0x20]
jmp 0x40818b
test ebx, ebx
je 0x4080cc
xor ebx, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
jmp 0x408124
push edi
call fcn.0040793d
mov edx, eax
test edx, edx
jne 0x4080f0
mov edx, dword [esp + 0x20]
xor ebp, ebp
inc ebp
xor ebx, ebx
mov eax, ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x10], eax
jmp 0x40817f
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xa4]
sub ecx, eax
sub dword [esp + 0x18], ecx
push 0
pop ebx
sbb dword [esp + 0x1c], ebx
add eax, dword [esp + 0x2c]
push ecx
push eax
push edx
mov dword [edi + 0x64], ecx
mov dword [edi + 0x60], ebx
call fcn.0043e8a0
mov esi, dword [esp + 0xb0]
add esp, 0xc
mov edx, dword [esp + 0x3c]
mov eax, ebx
cmp dword [esp + 0x28], 0
mov dword [esp + 0x10], eax
cmove edx, esi
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x20]
jmp 0x408065
mov dword [esp + 0x8c], ecx
mov eax, ecx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x40816a
push dword [esp + 0x44]
mov eax, dword [esp + 0x70]
push esi
push eax
call fcn.0043e8a0
mov eax, dword [esp + 0x1c]
add esp, 0xc
xor ebx, ebx
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ebx
jmp 0x40817a
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor ebp, ebp
inc ebp
mov edx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x408209
lea esi, [edi + 0xb0]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x88], ebx
je 0x4081c2
mov eax, dword [esp + 0x64]
cmp eax, dword [edi + 0x94]
jb 0x4081c2
ja 0x4081c4
mov eax, dword [esp + 0x68]
cmp eax, dword [edi + 0x90]
ja 0x4081c4
mov ebp, ebx
mov eax, dword [edi + 0x9c]
push esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
jmp 0x40820d
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
jmp 0x40820d
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
mov ebp, dword [esp + 0x14]
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x28], ebx
test esi, esi
jne 0x40824d
test edx, edx
je 0x408249
test ebp, ebp
jne 0x40824d
mov ecx, dword [esp + 0xc0]
mov eax, dword [edi + 0x18]
push dword [ecx + 4]
push dword [edi + 0x1c]
call dword [eax + 4]
mov ebx, eax
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x408256
xor eax, eax
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x40825a
xor eax, eax
inc eax
mov dword [esp + 0x10], eax
jmp 0x40825a
mov eax, dword [esp + 0x10]
xor ebp, ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x90], ebp
test eax, eax
jne 0x4082ea
mov eax, dword [edi + 0x58]
cmp eax, dword [edi + 0x54]
jae 0x4082b9
cmp dword [esp + 0x40], ebp
je 0x4082b9
add eax, 5
imul eax, eax, 0x28
add eax, edi
push eax
call fcn.00407b95
mov ecx, eax
test ecx, ecx
jne 0x408292
inc dword [edi + 0x58]
jmp 0x4082b9
mov eax, dword [edi + 0x58]
xor edx, edx
inc edx
cmp eax, edx
jne 0x4082b6
mov eax, ebp
mov dword [esp + 0x10], edx
mov ebp, dword [esp + 0xc0]
mov dword [esp + 0x20], eax
mov dword [esp + 0x90], ecx
jmp 0x4082f8
mov dword [edi + 0x54], eax
mov ebp, dword [esp + 0xc0]
mov ecx, dword [ebp + 4]
inc ecx
cmp ecx, dword [edi + 0x58]
sbb eax, eax
and eax, ecx
add eax, 5
imul eax, eax, 0x28
add eax, edi
mov dword [esp + 0x6c], eax
add eax, 0x1c
push eax
call fcn.0040a35f
test eax, eax
jne 0x408712
jmp 0x4082f1
mov ebp, dword [esp + 0xc0]
mov eax, dword [esp + 0x20]
xor edx, edx
inc edx
xorps xmm0, xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x7c], xmm0
test esi, esi
jne 0x4084a8
test eax, eax
je 0x4084a8
test ebx, ebx
jne 0x4084a8
mov esi, dword [esp + 0x50]
mov eax, edx
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x54], esi
mov dword [esp + 0x2c], ebx
test eax, eax
je 0x408366
mov esi, dword [esp + 0x3c]
jmp 0x408389
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
sub ebx, edx
mov esi, dword [edi]
sbb eax, ecx
cmp dword [esp + 0x98], eax
jb 0x408385
ja 0x408383
cmp esi, ebx
jbe 0x408385
mov esi, ebx
mov ebx, dword [esp + 0x2c]
add edx, esi
mov dword [esp + 0x4c], 1
push 0
pop eax
adc ecx, eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
cmp edx, dword [esp + 0x18]
jne 0x4083ad
cmp ecx, dword [esp + 0x1c]
jne 0x4083ad
inc eax
mov ecx, dword [edi + 0x18]
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x80]
push edx
lea edx, [esp + 0x64]
push edx
push eax
push esi
lea eax, [ebx + 0x10]
push eax
push dword [ebp + 4]
push dword [edi + 0x1c]
call dword [ecx + 8]
mov ebp, eax
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x408498
cmp dword [esp + 0x4c], eax
jne 0x4084cc
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
cmp edx, dword [esp + 0x18]
jne 0x408401
cmp ecx, dword [esp + 0x1c]
je 0x4084cc
mov esi, dword [esp + 0x7c]
mov eax, edx
sub eax, dword [esp + 0x40]
mov ebp, ecx
mov ebx, dword [esp + 0x80]
sbb ebp, dword [esp + 0x78]
sub esi, dword [esp + 0x54]
sbb ebx, dword [esp + 0x48]
test ebp, ebp
ja 0x408434
jb 0x40842b
cmp eax, 1
jae 0x408434
test ebx, ebx
jne 0x408434
cmp esi, 1
jb 0x40847e
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x68]
push dword [esp + 0x70]
push ebx
push esi
push ebp
push eax
push edi
call fcn.00407c4f
mov esi, dword [esp + 0x14]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x408492
test esi, esi
jne 0x408492
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x40], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0x2c]
xor eax, eax
mov ebp, dword [esp + 0xc0]
mov ebx, dword [ebx]
jmp 0x408358
mov ebp, dword [esp + 0x28]
jmp 0x4084d0
push dword [esp + 0x64]
push dword [esp + 0x6c]
push edi
call fcn.00407bf7
jmp 0x4084cc
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x54], eax
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc0]
push dword [eax + 0x20]
call fcn.0040a29b
test eax, eax
jne 0x408712
mov ebx, dword [esp + 0x84]
xor edx, edx
inc eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x4c], eax
cmp dword [edi + 0x24], edx
jne 0x408710
cmp dword [edi + 0x50], edx
je 0x40850f
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x408559
mov ecx, dword [esp + 0x74]
test ebp, ebp
je 0x408523
cmp ebp, 2
mov dword [edi + 0x50], eax
mov dword [edi + 0x4c], ebp
cmove ecx, eax
mov eax, dword [esp + 0x90]
test eax, eax
je 0x408539
xor ebx, ebx
mov dword [edi + 0x40], eax
inc ebx
mov dword [edi + 0x50], ebx
mov ebx, edx
xor eax, eax
inc eax
test ecx, ecx
je 0x408548
mov dword [edi + 0x50], eax
mov ebx, edx
mov dword [edi + 0x38], eax
cmp dword [esp + 0x8c], edx
je 0x408559
mov dword [edi + 0x50], eax
mov ebx, edx
mov dword [edi + 0x3c], eax
cmp dword [esp + 0x20], edx
je 0x4085b1
test esi, esi
je 0x408572
xorps xmm0, xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x7c], xmm0
mov esi, dword [esp + 0x5c]
sub esi, dword [esp + 0x40]
mov edx, dword [esp + 0x60]
sbb edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
sub ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x80]
sbb eax, dword [esp + 0x48]
push eax
push ecx
push edx
push esi
lea eax, [edi + 0x98]
push eax
call fcn.00407661
mov esi, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x24], eax
jmp 0x4085b5
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
xor ecx, ecx
test ebp, ebp
sete cl
cmp dword [esp + 0x84], 0
mov dword [esp + 0x88], ecx
je 0x40864b
test eax, eax
jne 0x4085e2
test ebx, ebx
je 0x4085e2
test esi, esi
jne 0x4085e2
lea ecx, [eax + 1]
jmp 0x4085e4
mov ecx, edx
mov ebx, dword [esp + 0xc0]
lea edx, [esp + 0x4c]
mov eax, dword [edi + 0x18]
push edx
lea edx, [esp + 0x8c]
push edx
push dword [esp + 0x38]
push dword [esp + 0x40]
push dword [esp + 0x48]
push ecx
push dword [ebx + 4]
push dword [edi + 0x1c]
call dword [eax + 0xc]
mov dword [esp + 0x24], eax
test eax, eax
je 0x408625
xor eax, eax
inc eax
mov dword [esp + 0x2c], eax
mov dword [edi + 0x50], eax
jmp 0x408634
mov ecx, dword [esp + 0x88]
test ecx, ecx
jne 0x408656
test ebp, ebp
jne 0x408656
push dword [esp + 0x64]
push dword [esp + 0x6c]
push edi
call fcn.00407bf7
mov ecx, dword [esp + 0x88]
jmp 0x408652
mov ebx, dword [esp + 0xc0]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x4c], 0
je 0x4086bf
cmp dword [esp + 0x20], 0
je 0x408687
test eax, eax
jne 0x408687
cmp dword [edi + 0x50], eax
jne 0x408689
cmp dword [esp + 0x28], eax
jne 0x408689
test esi, esi
jne 0x408689
cmp dword [edi + 0x84], eax
jne 0x40869a
cmp dword [esp + 0x2c], eax
je 0x4086bf
jmp 0x408689
xor eax, eax
cmp dword [edi + 0x84], eax
jne 0x40869a
mov eax, dword [ebx + 4]
mov dword [edi + 0x80], eax
mov esi, dword [esp + 0x18]
mov eax, esi
mov edx, dword [esp + 0x1c]
or eax, edx
jne 0x4086ac
test ebp, ebp
jne 0x4086cc
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], edx
inc dword [edi + 0x84]
test ebp, ebp
jne 0x4086cc
mov eax, dword [esp + 0x6c]
add eax, 0x20
jmp 0x4086f3
test ecx, ecx
je 0x4086e2
lea eax, [edi + 0xe8]
push eax
call fcn.0040a35f
test eax, eax
jne 0x408712
jmp 0x4086ed
xor eax, eax
cmp dword [ebx + 4], eax
je 0x408710
inc eax
mov dword [edi + 0x24], eax
lea eax, [edi + 0xe4]
push eax
call fcn.0040a35f
test eax, eax
jne 0x408712
push dword [ebx + 0x1c]
call fcn.0040a29b
test eax, eax
jne 0x408712
xor esi, esi
jmp 0x407d30
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 4