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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10020de5
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x1002e018]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x1002e018]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
cmp dword [ecx + 0x44], esi
je 0x100155f6
cmp byte [ecx + 0x49], 0
je 0x100155f6
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x1001562e
lea eax, [esp + 0x68]
push eax
call fcn.100158f0
mov dword [esp + 0x98], esi
lea ecx, [ecx]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.10015850
mov esi, eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0xa0], 1
call fcn.10015850
mov ebx, eax
mov byte [esp + 0x98], 2
call fcn.100156c0
mov edx, dword [esp + 0x7c]
mov esi, ebx
mov edi, eax
mov dword [esp + 0x28], edx
call fcn.100156c0
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
add edx, edi
push edx
push eax
lea eax, [ecx + 0x4c]
mov ecx, dword [ecx + 0x44]
push eax
call dword [sym.imp.MSVCP100D.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
push 3
lea ecx, [esp + 0x38]
mov ebx, eax
mov byte [esp + 0x9c], 1
call dword [sym.imp.MSVCP100D.dll_public:_void___thiscall_std::_Lockit::constructor_int_]
mov byte [esp + 0x98], 3
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10015373
cmp dword [eax + 4], 0
lea esi, [eax + 4]
je 0x1001534d
mov eax, dword [esi]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x10015348
cmp dword [eax + 4], 0
lea esi, [eax + 4]
jne 0x10015335
cmp dword [esi], 0
jne 0x10015365
push 0xb5
push str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexutility
push str.ITERATOR_LIST_CORRUPTED_
call dword [sym.imp.MSVCP100D.dll_void___cdecl_std::_Debug_message_wchar_t_const___wchar_t_const___unsigned_int_]
add esp, 0xc
mov edx, dword [esp + 0x3c]
mov dword [esi], edx
mov dword [esp + 0x38], 0
mov byte [esp + 0x98], 1
mov edi, dword [sym.imp.MSVCP100D.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
lea ecx, [esp + 0x34]
call edi
push 3
lea ecx, [esp + 0x34]
mov byte [esp + 0x9c], 0
call dword [sym.imp.MSVCP100D.dll_public:_void___thiscall_std::_Lockit::constructor_int_]
mov byte [esp + 0x98], 4
mov eax, dword [esp + 0x50]
test eax, eax
je 0x100153f2
cmp dword [eax + 4], 0
lea esi, [eax + 4]
je 0x100153cc
mov eax, dword [esi]
lea ecx, [esp + 0x50]
cmp eax, ecx
je 0x100153c7
cmp dword [eax + 4], 0
lea esi, [eax + 4]
jne 0x100153b4
cmp dword [esi], 0
jne 0x100153e4
push 0xb5
push str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexutility
push str.ITERATOR_LIST_CORRUPTED_
call dword [sym.imp.MSVCP100D.dll_void___cdecl_std::_Debug_message_wchar_t_const___wchar_t_const___unsigned_int_]
add esp, 0xc
mov edx, dword [esp + 0x54]
mov dword [esi], edx
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], 0
call edi
mov eax, ebx
sub eax, 0
je 0x1001542f
dec eax
je 0x10015437
sub eax, 2
mov dword [esp + 0x98], 0xffffffff
je 0x100155ec
lea edx, [esp + 0x68]
push edx
call fcn.10004bd0
xor al, al
jmp 0x100155f8
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x49], 0
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.10015850
mov esi, eax
mov byte [esp + 0x98], 5
call fcn.100156c0
mov ebx, dword [esp + 0x20]
push 3
lea ecx, [esp + 0x30]
sub ebx, eax
mov byte [esp + 0x9c], 0
call dword [sym.imp.MSVCP100D.dll_public:_void___thiscall_std::_Lockit::constructor_int_]
mov byte [esp + 0x98], 6
mov eax, dword [esp + 0x44]
test eax, eax
je 0x100154c6
cmp dword [eax + 4], 0
lea esi, [eax + 4]
je 0x100154a0
mov eax, dword [esi]
lea ecx, [esp + 0x44]
cmp eax, ecx
je 0x1001549b
cmp dword [eax + 4], 0
lea esi, [eax + 4]
jne 0x10015488
cmp dword [esi], 0
jne 0x100154b8
push 0xb5
push str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexutility
push str.ITERATOR_LIST_CORRUPTED_
call dword [sym.imp.MSVCP100D.dll_void___cdecl_std::_Debug_message_wchar_t_const___wchar_t_const___unsigned_int_]
add esp, 0xc
mov edx, dword [esp + 0x48]
mov dword [esi], edx
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x98], 0
call edi
test ebx, ebx
je 0x10015519
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.10015850
mov byte [esp + 0x98], 7
or dword [esp + 0x18], 1
mov esi, eax
call fcn.100156c0
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0x54]
push ecx
push ebx
push 1
push eax
call dword [sym.imp.MSVCR100D.dll_fwrite]
add esp, 0x10
mov byte [esp + 0x17], 1
cmp ebx, eax
jne 0x1001551e
mov byte [esp + 0x17], 0
mov dword [esp + 0x98], 0
test byte [esp + 0x18], 1
je 0x10015564
and dword [esp + 0x18], 0xfffffffe
push 3
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP100D.dll_public:_void___thiscall_std::_Lockit::constructor_int_]
lea edi, [esp + 0x5c]
mov byte [esp + 0x98], 8
call fcn.100037a0
lea ecx, [esp + 0x24]
mov byte [esp + 0x98], 0
call dword [sym.imp.MSVCP100D.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp byte [esp + 0x17], 0
jne 0x10015619
mov edx, dword [esp + 0x1c]
cmp byte [edx + 0x49], 0
je 0x10015632
test ebx, ebx
jne 0x100152a0
mov eax, dword [esp + 0x7c]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 8
jbe 0x10015644
lea esi, [eax + 8]
lea eax, [esp + 0x68]
call fcn.10004a60
test al, al
je 0x100152a0
mov ecx, dword [esp + 0x6c]
mov edx, 0x10
cmp dword [esp + 0x80], edx
jae 0x100155c1
lea ecx, [esp + 0x6c]
mov edi, dword [esp + 0x7c]
xor eax, eax
mov dword [ecx + edi], eax
mov dword [ecx + edi + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], esi
cmp dword [esp + 0x80], edx
jae 0x100155e3
lea eax, [esp + 0x6c]
mov byte [eax + esi], 0
jmp 0x100152a0
lea eax, [esp + 0x68]
push eax
call fcn.10004bd0
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1001ed20
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x9c], 0xffffffff
call fcn.10004bd0
xor al, al
jmp 0x100155f8
lea edx, [esp + 0x68]
mov dword [esp + 0x98], 0xffffffff
push edx
jmp 0x100155f1
push str.string_too_long
call dword [sym.imp.MSVCP100D.dll_void___cdecl_std::_Xlength_error_char_const__]
int3