Function at 0x407080
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440531
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4543f8]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x4543f8]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
cmp dword [ecx + 0x3c], esi
je 0x407470
cmp byte [ecx + 0x41], 0
je 0x407470
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x407458
push esi
lea eax, [esp + 0x64]
push eax
lea ecx, [esi + 8]
call fcn.00406680
mov dword [esp + 0x90], esi
mov edi, edi
lea esi, [esp + 0x48]
lea ecx, [esp + 0x60]
call fcn.00404270
mov edi, eax
lea esi, [esp + 0x30]
lea ecx, [esp + 0x60]
mov byte [esp + 0x90], 1
call fcn.00404270
mov ebx, eax
mov esi, edi
mov byte [esp + 0x90], 2
call fcn.00407880
mov ecx, dword [esp + 0x78]
mov esi, ebx
mov edi, eax
mov dword [esp + 0x24], ecx
call fcn.00407880
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
lea esi, [esp + 0x1c]
push esi
mov esi, dword [esp + 0x28]
add esi, edi
push esi
push eax
lea eax, [ebx + 0x44]
push eax
mov eax, dword [edx + 0x18]
call eax
push 3
lea ecx, [esp + 0x2c]
mov edi, eax
mov byte [esp + 0x94], 1
call fcn.0040f1f0
mov byte [esp + 0x90], 3
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4071d3
cmp dword [eax], 0xfffffffd
je 0x4071d3
cmp dword [eax], 0
mov esi, eax
je 0x4071a9
mov eax, dword [esi]
lea ecx, [esp + 0x30]
cmp eax, ecx
je 0x4071a9
cmp dword [eax + 4], 0
lea esi, [eax + 4]
jne 0x407196
cmp dword [esi], 0
jne 0x4071c5
push 0xbd
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCincludexutility
push str.ITERATOR_LIST_CORRUPTED_
call fcn.0040f260
add esp, 0xc
mov edx, dword [esp + 0x34]
mov dword [esi], edx
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 1
call fcn.0040f230
push 3
lea ecx, [esp + 0x24]
mov byte [esp + 0x94], 0
call fcn.0040f1f0
mov byte [esp + 0x90], 4
mov esi, dword [esp + 0x48]
test esi, esi
je 0x40724e
cmp dword [esi], 0xfffffffd
je 0x40724e
cmp dword [esi], 0
je 0x407229
mov eax, dword [esi]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x407224
cmp dword [eax + 4], 0
lea esi, [eax + 4]
jne 0x407211
cmp dword [esi], 0
jne 0x407240
push 0xbd
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCincludexutility
push str.ITERATOR_LIST_CORRUPTED_
call fcn.0040f260
add esp, 0xc
mov edx, dword [esp + 0x4c]
mov dword [esi], edx
mov dword [esp + 0x48], 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x90], 0
call fcn.0040f230
mov eax, edi
xor edi, edi
sub eax, edi
je 0x407289
sub eax, 1
je 0x40728d
sub eax, 2
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x60]
jne 0x407453
jmp 0x40746b
mov byte [ebx + 0x41], 0
lea esi, [esp + 0x3c]
lea ecx, [esp + 0x60]
call fcn.00404270
mov esi, eax
mov byte [esp + 0x90], 5
call fcn.00407880
mov ebx, dword [esp + 0x1c]
push 3
lea ecx, [esp + 0x30]
sub ebx, eax
mov byte [esp + 0x94], 0
call fcn.0040f1f0
mov byte [esp + 0x90], 6
mov esi, dword [esp + 0x3c]
cmp esi, edi
je 0x407317
cmp dword [esi], 0xfffffffd
je 0x407317
cmp dword [esi], edi
je 0x4072f6
jmp 0x4072e0
mov eax, dword [esi]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x4072f2
cmp dword [eax + 4], edi
lea esi, [eax + 4]
jne 0x4072e0
cmp dword [esi], edi
jne 0x40730d
push 0xbd
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCincludexutility
push str.ITERATOR_LIST_CORRUPTED_
call fcn.0040f260
add esp, 0xc
mov edx, dword [esp + 0x40]
mov dword [esi], edx
mov dword [esp + 0x3c], edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x90], 0
call fcn.0040f230
cmp ebx, edi
jbe 0x40736a
lea esi, [esp + 0x54]
lea ecx, [esp + 0x60]
call fcn.00404270
mov byte [esp + 0x90], 7
or dword [esp + 0x14], 1
mov esi, eax
call fcn.00407880
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x4c]
push edx
push ebx
push 1
push eax
call fcn.00413b80
add esp, 0x10
mov byte [esp + 0x13], 1
cmp ebx, eax
jne 0x40736f
mov byte [esp + 0x13], 0
mov dword [esp + 0x90], edi
test byte [esp + 0x14], 1
je 0x40738b
and dword [esp + 0x14], 0xfffffffe
lea edi, [esp + 0x54]
call fcn.004063a0
cmp byte [esp + 0x13], 0
jne 0x407444
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x41], 0
je 0x40745c
test ebx, ebx
jne 0x407100
or ecx, 0xffffffff
sub ecx, dword [esp + 0x78]
cmp ecx, 8
ja 0x4073bd
call fcn.00410870
mov esi, dword [esp + 0x78]
add esi, 8
cmp esi, 0xfffffffe
jbe 0x4073ce
call fcn.00410870
mov eax, dword [esp + 0x7c]
cmp eax, esi
jae 0x407427
mov edx, dword [esp + 0x78]
push edx
push esi
lea ecx, [esp + 0x68]
call fcn.0040b220
mov eax, dword [esp + 0x7c]
test esi, esi
jbe 0x407100
mov ecx, dword [esp + 0x68]
cmp eax, 0x10
jae 0x4073fe
lea ecx, [esp + 0x68]
mov edx, dword [esp + 0x78]
xor eax, eax
add ecx, edx
mov dword [ecx], eax
mov dword [ecx + 4], eax
cmp dword [esp + 0x7c], 0x10
mov eax, dword [esp + 0x68]
mov dword [esp + 0x78], esi
jae 0x40741e
lea eax, [esp + 0x68]
mov byte [eax + esi], 0
jmp 0x407100
test esi, esi
jne 0x4073eb
cmp eax, 0x10
mov eax, dword [esp + 0x68]
mov dword [esp + 0x78], esi
jae 0x40743c
lea eax, [esp + 0x68]
mov byte [eax], 0
jmp 0x407100
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.00404200
xor al, al
jmp 0x407472
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.00404200
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00411660
mov esp, ebp
pop ebp
ret