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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x1180
call fcn.00587440
mov esi, esp
mov dword [esi + 0x1168], ebp
mov dword [esi + 0x116c], esp
mov dword [esi + 0x1178], 0xffffffff
mov dword [esi + 0x1174], 0x41ba70
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 8]
lea ebx, [esi + 0x1170]
mov edi, edx
mov eax, dword fs:[0]
mov dword [esi + 0x1170], eax
mov dword fs:[0], ebx
lea ebx, [esi + 0x168]
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], ecx
push ebx
call fcn.005162b0
add esp, 4
push 1
push ebx
call fcn.005162e0
add esp, 8
lea ecx, [esi + 0x24]
push dword [ebp + 8]
push edi
push eax
push ecx
call fcn.00516330
add esp, 0x10
lea eax, [esi + 0x54]
mov dword [esi + str.error_opening], 0x5b2650
mov dword [esi + 0x16c], 1
mov dword [esi + 0x178], 0
mov byte [esi + 6], 1
mov dword [esi + 0x1178], 0
mov dword [esi + 0x10], eax
lea eax, [esi + 0x10]
mov dword [esi + 0xc0], eax
lea eax, [esi + 0xc0]
mov dword [esi + 0xc4], 0x41fc40
mov dword [esi + 0x170], eax
mov dword [esi + 0x174], 1
lea eax, [esi + 0x60]
push ebx
push eax
call fcn.00538850
add esp, 8
mov eax, dword [esi + 0x60]
movq xmm0, qword [esi + 0x64]
cmp byte [esi + 0x24], 4
jne 0x40698d
mov edi, dword [esi + 0x28]
movd ecx, xmm0
test ecx, ecx
je 0x406a15
push 1
push ecx
push eax
call fcn.00452e30
add esp, 0xc
jmp 0x406a15
movsd xmm1, qword [esi + 0x24]
mov dword [esi + 0x60], eax
lea eax, [esi + 0xc0]
movq qword [esi + 0x64], xmm0
mov byte [esi + 6], 0
movsd qword [esi + 0xc0], xmm1
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x168]
push eax
call fcn.0044a0d0
add esp, 0xc
movsd xmm1, qword [esi + 0x178]
mov eax, dword [esi + 0x168]
movq xmm0, qword [esi + 0x170]
movsd xmm2, qword [esi + 0x180]
mov edi, dword [esi + 0x16c]
movsd qword [esi + 0x110], xmm1
movsd xmm1, qword [esi + 0x188]
cmp eax, 3
movq qword [esi + 0x108], xmm0
movsd qword [esi + 0x118], xmm2
movsd qword [esi + 0x120], xmm1
jne 0x406eec
movzx eax, byte [0x636fbd]
push 1
push 0x2000
call fcn.00452e20
add esp, 8
test eax, eax
je 0x407040
movdqa xmm0, xmmword [0x5b23d0]
movaps xmm1, xmmword [0x5b23e0]
mov dword [esi + 0x38], edi
mov dword [esi + 0x24], eax
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb0], 0
mov byte [esi + 0xb8], 0
movups xmmword [esi + 0x60], xmm1
movdqu xmmword [esi + 0x28], xmm0
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 0
push 0x1000
push 0
lea eax, [esi + 0x168]
push eax
call fcn.00588b30
add esp, 0xc
jmp 0x406b48
lea eax, [esi + 0x78]
add eax, edi
push ebx
lea ecx, [esi + 0x168]
push ecx
push eax
call fcn.005885b0
add esp, 0xc
add ebx, edi
mov byte [esi + 0xb8], bl
mov dword [esi + 0x1178], 2
mov dword [esi + 0x1178], 2
push 0x1000
lea eax, [esi + 0x168]
push eax
lea eax, [esi + 0x24]
push eax
lea eax, [esi + 0x3c]
push eax
call fcn.00450f90
add esp, 0x10
lea eax, [esi + 0x54]
mov dword [esi + 0x108], 0x5b2674
mov dword [esi + 0x10c], 1
mov dword [esi + 0x118], 0
mov byte [esi + 7], 1
mov dword [esi + 0x1178], 3
mov dword [esi + 0x5c], eax
lea eax, [esi + 0x5c]
mov dword [esi + 0x44], eax
lea eax, [esi + 0x44]
mov dword [esi + 0x48], 0x41fc40
mov dword [esi + 0x110], eax
lea eax, [esi + 0x108]
mov dword [esi + 0x114], 1
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00538850
add esp, 8
mov eax, dword [esi + 0x10]
movq xmm0, qword [esi + 0x14]
cmp byte [esi + 0x3c], 4
jne 0x406c00
mov ebx, dword [esi + 0x40]
movd ecx, xmm0
test ecx, ecx
je 0x406c7b
push 1
push ecx
push eax
call fcn.00452e30
add esp, 0xc
jmp 0x406c7b
movsd xmm1, qword [esi + 0x3c]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x44]
movq qword [esi + 0x14], xmm0
mov byte [esi + 7], 0
movsd qword [esi + 0x44], xmm1
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x108]
push eax
call fcn.0044a0d0
add esp, 0xc
lea ecx, [esi + 0x110]
mov eax, dword [esi + 0x108]
mov ebx, dword [esi + 0x10c]
movsd xmm1, qword [ecx + 8]
movq xmm0, qword [ecx]
movsd xmm2, qword [ecx + 0x10]
cmp eax, 3
movsd qword [esi + 0xc8], xmm1
movsd xmm1, qword [ecx + 0x18]
movq qword [esi + 0xc0], xmm0
movsd qword [esi + 0xd0], xmm2
movsd qword [esi + 0xd8], xmm1
jne 0x406e5f
test ebx, ebx
je 0x406d51
cmp ebx, 0x1001
jae 0x407021
movzx eax, byte [esi + 0xb8]
mov ecx, 0x40
mov edx, ebx
movzx edi, al
sub ecx, edi
sub edx, ecx
jb 0x406b20
mov dword [esi + 8], edx
test al, al
lea edx, [esi + 0x168]
je 0x406cfe
lea ebx, [esi + 0x78]
add edi, ebx
push ecx
lea eax, [esi + 0x168]
push eax
push edi
mov dword [esi + 0xc], ecx
call fcn.005885b0
add esp, 0xc
add dword [esi + 0x70], 1
mov dword [esi + 0x1178], 2
lea ecx, [esi + 0x60]
mov edx, ebx
adc dword [esi + 0x74], 0
push 1
call fcn.00401000
add esp, 4
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 8]
lea edx, [esi + eax + 0x168]
cmp ebx, 0x40
jb 0x406d34
mov eax, ebx
mov dword [esi + 8], edx
mov dword [esi + 0x1178], 2
lea ecx, [esi + 0x60]
shr eax, 6
mov edx, dword [esi + 8]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
push eax
mov dword [esi + 0xc], ebx
call fcn.00401000
mov edx, dword [esi + 8]
mov ebx, dword [esi + 0xc]
add esp, 4
mov eax, ebx
and ebx, 0x3f
and eax, 0xffffffc0
add edx, eax
push ebx
push edx
lea eax, [esi + 0x78]
push eax
call fcn.005885b0
add esp, 0xc
jmp 0x406b38
push 0x60
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x108]
push eax
call fcn.005885b0
add esp, 0xc
mov eax, dword [esi + 0x118]
movzx ebx, byte [esi + 0x160]
mov ecx, dword [esi + 0x11c]
movq xmm0, qword [esi + 0x60]
movsd xmm1, qword [esi + 0x68]
lea edx, [esi + 0x120]
mov dword [esi + 0x50], eax
shl eax, 9
lea edi, [ebx*8]
movsd qword [esi + 0x18], xmm1
movq qword [esi + 0x10], xmm0
mov byte [esi + ebx + 0x120], 0x80
mov dword [esi + 0x4c], eax
mov eax, ebx
xor eax, 0x3f
je 0x406dd2
mov dword [esi + 8], ecx
lea ecx, [ebx + edx + 1]
push eax
push 0
push ecx
mov dword [esi + 0xc], edi
mov edi, edx
call fcn.00588b30
mov edx, edi
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0x50]
or edi, dword [esi + 0x4c]
xor ebx, 0x38
shld ecx, eax, 9
cmp ebx, 8
jae 0x406f65
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
mov dword [esi + 0x1178], 2
lea ecx, [esi + 0x10]
push 1
call fcn.00401000
add esp, 4
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
pxor xmm0, xmm0
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf0], 0
lea edx, [esi + 0xc0]
movdqa xmmword [esi + 0xe0], xmm0
movdqa xmmword [esi + 0xd0], xmm0
movdqa xmmword [esi + 0xc0], xmm0
mov dword [esi + 0xfc], ecx
mov dword [esi + 0xf8], eax
lea ecx, [esi + 0x10]
push 1
call fcn.00401000
add esp, 4
jmp 0x406f88
movsd xmm1, qword [esi + 0xd0]
movsd xmm0, qword [esi + 0xd8]
movsd xmm2, qword [esi + 0xc0]
mov dword [esi + 0x1178], 2
movsd qword [esi + 0x120], xmm1
movsd xmm1, qword [esi + 0xc8]
movsd qword [esi + 0x128], xmm0
movsd qword [esi + 0x110], xmm2
movsd qword [esi + 0x118], xmm1
mov dword [esi + 0x108], eax
lea eax, [esi + 0x108]
mov dword [esi + 0x10c], ebx
push eax
call fcn.00429d60
add esp, 4
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x1178], 4
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x38]
mov dword [ecx + 8], edx
mov dword [ecx], 0
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x406ff8
movsd xmm1, qword [esi + 0x118]
movq xmm0, qword [esi + 0x120]
movsd xmm2, qword [esi + 0x108]
mov dword [esi + 0x1178], 0xffffffff
movsd qword [esi + 0x180], xmm1
movsd xmm1, qword [esi + 0x110]
movq qword [esi + 0x188], xmm0
movsd qword [esi + 0x170], xmm2
movsd qword [esi + 0x178], xmm1
mov dword [esi + 0x168], eax
lea eax, [esi + 0x168]
mov dword [esi + 0x16c], edi
push eax
call fcn.00429d60
add esp, 4
mov ecx, dword [esi + 0x20]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov dword [ecx], 0
jmp 0x40700d
mov dword [esi + 0x15c], ecx
mov dword [esi + 0x158], edi
mov dword [esi + 0x1178], 2
lea ecx, [esi + 0x10]
push 1
call fcn.00401000
add esp, 4
movq xmm0, qword [esi + 0x10]
movsd xmm1, qword [esi + 0x18]
movsd qword [esi + 0xc8], xmm1
movq qword [esi + 0xc0], xmm0
push str.0123456789abcdefPoisonError
push 0x10
lea eax, [esi + 0xc0]
push eax
lea eax, [esi + 0x108]
push eax
call fcn.0049ddc0
add esp, 0x10
lea eax, [esi + 0x108]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.004510c0
add esp, 8
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x1178], 5
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x38]
movq qword [ecx], xmm0
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x40700d
push 1
push eax
push dword [esi + 0x24]
call fcn.00452e30
add esp, 0xc
mov eax, dword [esi + 0x1170]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x1178], 2
push 0x5b267c
push 0x1000
push ebx
call fcn.005b1b20
add esp, 0xc
jmp 0x40705c
mov dword [esi + 8], edi
mov dword [esi + 0x1178], 1
push 0x2000
push 1
call fcn.005b14d0
add esp, 8
ud2