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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
xor esi, esi
lea eax, [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
dec esi
mov dword [eax - 4], esp
mov dword [eax + 8], esi
mov dword [eax + 4], 0x4177a0
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov edi, dword [ebx]
mov eax, dword [ecx]
mov ecx, 2
sub eax, edi
mov dword [ebp - 0x24], edi
mov edx, eax
add edx, eax
cmovne ecx, edx
cmp eax, 0x7fffffff
cmovae ecx, esi
mov esi, dword [ebx + 4]
xor eax, eax
mov dword [ebp - 0x28], ecx
cmp esi, fcn.0040e9f0
cmovne eax, edi
mov edi, dword [ebp + 0xc]
mov edx, dword [edi]
mov dword [ebp - 0x20], edx
push ecx
push eax
call fcn.00419290
add esp, 8
test eax, eax
je 0x410e45
cmp esi, fcn.0040e9f0
je 0x410def
mov dword [ebx], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
jmp 0x410e17
mov ecx, dword [ebx]
mov dword [ebx], eax
test ecx, ecx
je 0x410de7
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], 0
push ecx
call eax
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp + 0xc]
mov eax, dword [ecx]
mov ebx, ecx
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov dword [ebx + 4], fcn.00419270
and ecx, 0xfffffffe
sub esi, edx
sar esi, 1
lea eax, [eax + esi*2]
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
add ecx, dword [ebx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0041796c
push ebp
sub esp, 8
add ebp, 0xc
call fcn.00431a26
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1c8
mov esi, esp
mov dword [esi + 0x1b0], ebp
lea eax, [esi + 0x1b8]
movsd xmm0, qword [ebp + 0x1c]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x4177b0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea eax, [esi + 0x14c]
mov dword [esi + 0x18], eax
sub esp, 0x14
mov edi, 0x64
movsd qword [esp + 0xc], xmm0
mov dword [esp], eax
mov dword [esp + 8], 0x456082
mov dword [esp + 4], edi
call fcn.004112a5
add esp, 0x14
cmp eax, edi
jb 0x410f47
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c0], eax
lea eax, [esi + 0x7c]
push eax
call fcn.00406762
add esp, 4
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x80]
xor edx, edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
sub esp, 0x18
movsd xmm0, qword [ebp + 0x1c]
mov dword [esp + 4], eax
lea eax, [esi + 0x18]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0x456082
mov dword [esp], eax
movsd qword [esp + 0x10], xmm0
call fcn.00418c5d
add esp, 0x18
mov dword [esi + 4], eax
mov edi, dword [esi + 0x18]
test edi, edi
je 0x4111a0
push dword [esi + 4]
call fcn.00419230
add esp, 4
test eax, eax
je 0x4111ad
mov dword [esi + 0x20], eax
jmp 0x410f57
mov dword [esi + 4], eax
lea eax, [esi + 0xe8]
xor edi, edi
mov dword [esi + 0x20], eax
xor eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x4c], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c0], 0
push eax
call fcn.004031be
mov dword [esi + 0x1c0], 1
lea ecx, [esi + 0x14]
push 0x465fd8
call fcn.004132b6
mov edx, dword [esi + 4]
mov dword [esi + 4], edx
mov ecx, eax
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 4]
mov edi, dword [ecx]
lea edx, [eax + edx]
push dword [esi + 0x20]
push edx
push eax
mov dword [esi + 0x68], ecx
call dword [edi + 0x18]
mov eax, dword [esi + 4]
xor ecx, ecx
test eax, eax
je 0x410fc2
mov edx, dword [esi + 0x18]
cmp byte [edx], 0x2d
sete al
jmp 0x410fc4
xor eax, eax
lea ebx, [esi + 0x50]
lea edi, [esi + 0x38]
lea edx, [esi + 0x28]
mov dword [esi + 0x1c0], 2
movzx eax, al
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
mov dword [edi + 4], ecx
mov dword [edi], ecx
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
mov dword [edx], ecx
mov dword [edx + 8], ecx
movzx ecx, byte [ebp + 0x10]
mov dword [esi], ecx
lea ecx, [esi + 0x74]
push ecx
push edx
push edi
push ebx
lea edx, [esi + 0xa]
push edx
lea ecx, [esi + 0xb]
push ecx
lea edx, [esi + 0x78]
push edx
lea edx, [esi + 0x14]
push edx
mov dword [esi + 0x64], eax
push eax
push dword [esi]
call fcn.00411302
add esp, 0x28
mov ebx, dword [esi + 4]
mov edi, dword [esi + 0x74]
mov edx, ebx
sub edx, edi
jle 0x411045
movzx eax, byte [esi + 0x33]
test al, al
jns 0x411034
mov eax, dword [esi + 0x2c]
movzx ecx, byte [esi + 0x43]
test cl, cl
jns 0x41103f
mov ecx, dword [esi + 0x3c]
lea edx, [edi + edx*2 + 1]
jmp 0x41105e
movzx eax, byte [esi + 0x33]
test al, al
jns 0x411050
mov eax, dword [esi + 0x2c]
movzx ecx, byte [esi + 0x43]
test cl, cl
jns 0x41105b
mov ecx, dword [esi + 0x3c]
lea edx, [edi + 2]
add eax, edx
mov dword [esi + 0x60], edi
add eax, ecx
cmp eax, 0x65
jb 0x411081
push eax
call fcn.00419230
add esp, 4
test eax, eax
mov dword [esi], eax
je 0x4111b8
mov eax, dword [esi]
jmp 0x41108d
lea eax, [esi + 0x84]
mov dword [esi], 0
mov dword [esi + 0x1c], eax
mov edx, dword [ebp + 0x14]
mov edi, dword [esi + 0x20]
movsx eax, byte [esi + 0xa]
movsx ecx, byte [esi + 0xb]
mov edx, dword [edx + 4]
add ebx, edi
mov dword [esi + 0x1c0], 3
mov dword [esi + 4], edx
mov edx, dword [esi]
mov dword [esi + 0x24], edx
push dword [esi + 0x60]
lea edx, [esi + 0x28]
push edx
lea edx, [esi + 0x38]
push edx
lea edx, [esi + 0x50]
push edx
push eax
push ecx
lea eax, [esi + 0x78]
push eax
push dword [esi + 0x64]
push dword [esi + 0x68]
push ebx
push edi
push dword [esi + 4]
lea eax, [esi + 0x6c]
push eax
lea eax, [esi + 0x70]
push eax
push dword [esi + 0x1c]
call fcn.00411478
add esp, 0x3c
mov edi, dword [esi]
mov al, byte [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x6c]
mov dword [esi + 0x24], edi
mov edi, dword [esi + 0x70]
movsx eax, al
push eax
push dword [ebp + 0x14]
push edx
push edi
push dword [esi + 0x1c]
push ecx
push dword [ebp + 8]
call fcn.004099a1
add esp, 0x1c
cmp dword [esi], 0
je 0x411120
push dword [esi]
call fcn.00419270
add esp, 4
cmp byte [esi + 0x33], 0
mov edi, dword [esi + 0x4c]
jns 0x411134
push dword [esi + 0x28]
call fcn.0042fd04
add esp, 4
cmp byte [esi + 0x43], 0
jns 0x411145
push dword [esi + 0x38]
call fcn.0042fd04
add esp, 4
cmp byte [esi + 0x5b], 0
jns 0x411156
push dword [esi + 0x50]
call fcn.0042fd04
add esp, 4
mov ecx, dword [esi + 0x14]
xor eax, eax
dec eax
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x41116a
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0x48]
test eax, eax
je 0x41117a
push eax
call fcn.00419270
add esp, 4
test edi, edi
je 0x411187
push edi
call fcn.00419270
add esp, 4
mov eax, dword [esi + 0x1b8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call fcn.0041796c
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
call fcn.0041796c
mov eax, dword [esi]
mov dword [esi + 0x1c0], 3
mov dword [esi + 0x24], eax
call fcn.0041796c
push ebp
sub esp, 0x3c
lea esi, [ebp - 0x1c4]
mov ebp, dword [esi + 0x1b0]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4111ec
push eax
call fcn.00419270
add esp, 4
add esp, 0x3c
pop ebp
ret