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

Disassembly:
push 0xffffffffffffffff
push 0x100780ea
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x100bcc40]
xor eax, esp
mov dword [esp + 0x1e4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100bcc40]
xor eax, esp
push eax
lea eax, [esp + 0x1fc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20c]
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x204], 1
mov dword [esp + 0x1f4], 0xf
mov dword [esp + 0x1f0], ebx
mov byte [esp + 0x1e0], bl
push 1
lea ecx, [esp + 0x11c]
mov byte [esp + 0x208], 2
call fcn.1001a410
cmp dword [esp + 0x228], 0x10
mov eax, dword [esp + 0x214]
mov byte [esp + 0x204], 3
jae 0x1001acc6
lea eax, [esp + 0x214]
push 0x40
push 0x21
push eax
lea ecx, [esp + 0x12c]
call fcn.10017020
test eax, eax
jne 0x1001ad05
mov ecx, dword [esp + 0x118]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x120]
lea ecx, [esp + ecx + 0x118]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x1001acfe
or eax, 4
push ebx
push eax
call fcn.1000eef0
mov eax, dword [esp + 0x120]
push 1
push 2
push ebx
lea edx, [esp + 0x1cc]
push edx
mov edx, dword [eax + 0x24]
lea ecx, [esp + 0x130]
call edx
mov eax, dword [esp + 0x1c0]
mov ecx, dword [esp + 0x1c8]
lea ebp, [ecx + eax]
push 1
sub esp, 0x18
mov eax, esp
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x1e0]
mov dword [eax + 4], ecx
xor edx, edx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x1f0]
xor esi, esi
mov dword [eax + 0xc], esi
xor edi, edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x13c]
lea eax, [esp + 0x1dc]
push eax
mov eax, dword [edx + 0x28]
lea ecx, [esp + 0x140]
mov dword [esp + 0x38], ebp
call eax
inc ebp
push ebp
call fcn.1003bf72
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x124]
add esp, 4
mov ebp, eax
mov eax, dword [edx + 0x18]
push esi
push ebp
lea ecx, [esp + 0x128]
call eax
lea ecx, [esp + 0x120]
mov byte [esi + ebp], bl
call fcn.1000e780
test eax, eax
jne 0x1001ade5
mov ecx, dword [esp + 0x118]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x120]
lea ecx, [esp + ecx + 0x118]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x1001adde
or eax, 4
push ebx
push eax
call fcn.1000eef0
xor eax, eax
mov dl, 0x5a
mov cl, 0x90
jmp 0x1001adf0
cmp eax, ebx
jne 0x1001adfa
mov byte [ebp], 0x4d
jmp 0x1001ae5f
cmp eax, 1
jne 0x1001ae04
mov byte [ebp + 1], dl
jmp 0x1001ae5f
cmp eax, 2
jne 0x1001ae0e
mov byte [ebp + 2], cl
jmp 0x1001ae5f
cmp eax, 3
jne 0x1001ae18
mov byte [ebp + 3], bl
jmp 0x1001ae5f
cmp eax, 4
jne 0x1001ae23
mov byte [ebp + 4], 3
jmp 0x1001ae5f
cmp eax, 5
jne 0x1001ae2d
mov byte [ebp + 5], bl
jmp 0x1001ae5f
cmp eax, 6
jne 0x1001ae37
mov byte [ebp + 6], bl
jmp 0x1001ae5f
cmp eax, 7
jne 0x1001ae41
mov byte [ebp + 7], bl
jmp 0x1001ae5f
cmp eax, 8
jne 0x1001ae4c
mov byte [ebp + 8], 4
jmp 0x1001ae5f
cmp eax, 9
jne 0x1001ae56
mov byte [ebp + 9], bl
jmp 0x1001ae5f
cmp eax, 0xa
jne 0x1001ae5f
mov byte [ebp + 0xa], 4
inc eax
cmp eax, 0xb
jl 0x1001adf0
lea edx, [esp + 0x3c]
push 6
push edx
call fcn.10012fc0
mov esi, eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x210], 4
call fcn.10011fd0
push esi
push eax
lea ecx, [esp + 0x1d4]
push ecx
mov byte [esp + 0x21c], 5
call fcn.10001670
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x210], 6
call fcn.10001410
mov esi, 0x10
cmp dword [esp + 0x1d8], esi
jb 0x1001aed5
mov edx, dword [esp + 0x1c4]
push edx
call fcn.1003bf67
add esp, 4
mov edi, 0xf
mov dword [esp + 0x1d8], edi
mov dword [esp + 0x1d4], ebx
mov byte [esp + 0x1c4], bl
cmp dword [esp + 0x38], esi
jb 0x1001af02
mov eax, dword [esp + 0x24]
push eax
call fcn.1003bf67
add esp, 4
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov byte [esp + 0x204], 3
cmp dword [esp + 0x54], esi
jb 0x1001af29
mov ecx, dword [esp + 0x40]
push ecx
call fcn.1003bf67
add esp, 4
mov eax, dword [esp + 0x1e0]
cmp dword [esp + 0x1f4], esi
jae 0x1001af40
lea eax, [esp + 0x1e0]
push ebx
push eax
call fcn.10008c10
lea edx, [esp + 0x1ac]
push edx
call fcn.10011050
mov esi, eax
lea eax, [esp + 0x48]
push 4
push eax
mov byte [esp + 0x218], 7
call fcn.10012fc0
mov edi, eax
lea ecx, [esp + 0xf4]
push ecx
mov byte [esp + 0x21c], 8
call fcn.1000f140
push eax
lea edx, [esp + 0x1f8]
push edx
lea eax, [esp + 0x11c]
push eax
mov byte [esp + 0x228], 9
call fcn.10001670
push edi
push eax
lea ecx, [esp + 0x1ec]
push ecx
mov byte [esp + 0x234], 0xa
call fcn.10001670
push esi
push eax
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x240], 0xb
call fcn.10001670
add esp, 0x3c
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x210], 0xc
call fcn.10001410
mov edi, 0x10
cmp dword [esp + 0x38], edi
jb 0x1001affd
mov eax, dword [esp + 0x24]
push eax
call fcn.1003bf67
add esp, 4
mov esi, 0xf
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp dword [esp + 0x1d8], edi
jb 0x1001b027
mov ecx, dword [esp + 0x1c4]
push ecx
call fcn.1003bf67
add esp, 4
mov dword [esp + 0x1d8], esi
mov dword [esp + 0x1d4], ebx
mov byte [esp + 0x1c4], bl
cmp dword [esp + 0x114], edi
jb 0x1001b055
mov edx, dword [esp + 0x100]
push edx
call fcn.1003bf67
add esp, 4
mov dword [esp + 0x114], esi
mov dword [esp + 0x110], ebx
mov byte [esp + 0x100], bl
cmp dword [esp + 0xf8], edi
jb 0x1001b083
mov eax, dword [esp + 0xe4]
push eax
call fcn.1003bf67
add esp, 4
mov dword [esp + 0xf8], esi
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
cmp dword [esp + 0x54], edi
jb 0x1001b0ab
mov ecx, dword [esp + 0x40]
push ecx
call fcn.1003bf67
add esp, 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0x204], 3
cmp dword [esp + 0x1bc], edi
jb 0x1001b0d8
mov edx, dword [esp + 0x1a8]
push edx
call fcn.1003bf67
add esp, 4
mov eax, dword [esp + 0x1e0]
cmp dword [esp + 0x1f4], edi
jae 0x1001b0ef
lea eax, [esp + 0x1e0]
push 1
push 0x40
push 2
push eax
lea ecx, [esp + 0x68]
call fcn.1001a650
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 4]
mov ecx, dword [esp + eax + 0x60]
lea eax, [esp + eax + 0x58]
and cl, 6
movsx edx, cl
neg edx
sbb edx, edx
not edx
mov byte [esp + 0x204], 0xd
test eax, edx
je 0x1001b399
lea eax, [esp + 0x1c0]
push eax
call fcn.100131e0
add esp, 4
mov ecx, dword [esp + 0x1c4]
mov byte [esp + 0x204], 0xe
cmp dword [esp + 0x1d8], edi
jae 0x1001b159
lea ecx, [esp + 0x1c4]
mov eax, dword [esp + 0x1e0]
cmp dword [esp + 0x1f4], edi
jae 0x1001b170
lea eax, [esp + 0x1e0]
push ecx
push eax
call fcn.1005e258
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x1001b280
mov esi, dword [esp + 0x14]
push ebx
mov ebp, 0xf
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push 0x1007aa5f
mov ecx, esi
mov byte [esi + 4], bl
call fcn.100014f0
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x1d8], edi
jb 0x1001b1c4
mov ecx, dword [esp + 0x1c4]
push ecx
call fcn.1003bf67
add esp, 4
lea ecx, [esp + 0xac]
mov dword [esp + 0x1d8], ebp
mov dword [esp + 0x1d4], ebx
mov byte [esp + 0x1c4], bl
mov byte [esp + 0x204], 3
call fcn.10016770
lea edx, [esp + 0xac]
mov ebp, vtable.std::ios_base.0
push edx
mov dword [esp + 0xb0], ebp
call fcn.100741c3
add esp, 4
lea ecx, [esp + 0x170]
mov byte [esp + 0x204], 2
call fcn.10016f30
lea eax, [esp + 0x170]
push eax
mov dword [esp + 0x174], ebp
call fcn.100741c3
add esp, 4
cmp dword [esp + 0x1f4], edi
jb 0x1001b24d
mov ecx, dword [esp + 0x1e0]
push ecx
call fcn.1003bf67
add esp, 4
mov dword [esp + 0x1f4], 0xf
mov dword [esp + 0x1f0], ebx
mov byte [esp + 0x1e0], bl
cmp dword [esp + 0x228], edi
jb 0x1001b46a
mov edx, dword [esp + 0x214]
push edx
jmp 0x1001b462
mov eax, dword [esp + 0x18]
push esi
push eax
push 1
push ebp
call fcn.1005db47
push esi
call fcn.1005de02
push ebp
call fcn.1005ca86
add esp, 0x18
lea esi, [esp + 0x5c]
cmp dword [esp + 0xa8], ebx
je 0x1001b2cb
mov ecx, esi
call fcn.1000d630
test al, al
jne 0x1001b2b7
xor esi, esi
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.1005de02
add esp, 4
test eax, eax
je 0x1001b2cd
xor esi, esi
lea edx, [esp + 0x64]
mov dword [esp + 0x6c], edx
lea eax, [esp + 0x68]
lea ecx, [esp + 0x74]
lea edx, [esp + 0x78]
mov dword [esp + 0x70], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov edx, dword [0x100c1dec]
lea eax, [esp + 0x84]
lea ecx, [esp + 0x88]
mov byte [esp + 0xa4], bl
mov byte [esp + 0x9d], bl
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa0], edx
mov dword [esp + 0x98], ebx
cmp esi, ebx
jne 0x1001b378
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x60]
lea ecx, [esp + ecx + 0x58]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x1001b371
or eax, 4
push ebx
push eax
call fcn.1000eef0
mov byte [esp + 0x204], 0xd
cmp dword [esp + 0x1d8], edi
jb 0x1001b399
mov ecx, dword [esp + 0x1c4]
push ecx
call fcn.1003bf67
add esp, 4
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1e4]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10001410
lea ecx, [esp + 0xac]
mov dword [esp + 0x1c], 1
mov byte [esp + 0x204], 3
call fcn.10016770
lea eax, [esp + 0xac]
mov ebp, vtable.std::ios_base.0
push eax
mov dword [esp + 0xb0], ebp
call fcn.100741c3
add esp, 4
lea ecx, [esp + 0x170]
mov byte [esp + 0x204], 2
call fcn.10016f30
lea ecx, [esp + 0x170]
push ecx
mov dword [esp + 0x174], ebp
call fcn.100741c3
add esp, 4
cmp dword [esp + 0x1f4], edi
jb 0x1001b438
mov edx, dword [esp + 0x1e0]
push edx
call fcn.1003bf67
add esp, 4
mov dword [esp + 0x1f4], 0xf
mov dword [esp + 0x1f0], ebx
mov byte [esp + 0x1e0], bl
cmp dword [esp + 0x228], edi
jb 0x1001b46a
mov eax, dword [esp + 0x214]
push eax
call fcn.1003bf67
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1fc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.1005b626
add esp, 0x1f4
ret