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

Disassembly:
sub esp, 0x9f0
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0x9ec], eax
mov eax, dword [esp + 0x9f8]
push ebp
mov ebp, dword [esp + 0x9f8]
push esi
mov esi, dword [esp + 0xa04]
mov dword [esp + 8], eax
test ebp, ebp
jne 0x2000f70a
xor eax, eax
jmp 0x2000fd4e
mov eax, dword [0x2002b328]
test eax, eax
jle 0x2000f718
cmp eax, 0x11
jl 0x2000f736
cmp eax, 0x3e8
jle 0x2000f726
cmp eax, 0x3f9
jl 0x2000f736
cmp eax, dword [0x20026270]
je 0x2000f736
cmp eax, dword [0x20026208]
jne 0x2000f703
push 0xc0
push 0
push ebp
call fcn.200132c0
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x5fc]
push edx
mov edx, dword [0x2002b328]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xf4]
push ecx
push edx
call sym.SDTAPI.DLL_SDT_ReadBaseMsg
cmp eax, 0x90
jne 0x2000f703
push 0x104
lea eax, [esp + 0x1e8]
push 0
push eax
call fcn.200132c0
push 0x104
lea ecx, [esp + 0x2f8]
push 0
push ecx
call fcn.200132c0
push 0x104
lea edx, [esp + 0x408]
push 0
push edx
call fcn.200132c0
add esp, 0x24
test esi, esi
je 0x2000f884
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2000f7c1
sub eax, edx
je 0x2000f884
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2000f7d5
sub eax, edx
cmp byte [esi + eax], 0x5c
push str.photo.wlt
lea eax, [esp + 0x1e8]
jne 0x2000f834
push esi
push str._s_s
push eax
call fcn.2001364c
push str.photo.bmp
push esi
lea ecx, [esp + 0x300]
push str._s_s
push ecx
call fcn.2001364c
push str.photo.jpg
push esi
lea edx, [esp + 0x414]
push str._s_s
push edx
call fcn.2001364c
add esp, 0x30
jmp 0x2000f8cc
push 0x20020500
push esi
push str._s_s_s
push eax
call fcn.2001364c
push str.photo.bmp
push 0x20020500
push esi
lea ecx, [esp + 0x308]
push str._s_s_s
push ecx
call fcn.2001364c
push str.photo.jpg
push 0x20020500
push esi
lea edx, [esp + 0x420]
push str._s_s_s
push edx
call fcn.2001364c
add esp, 0x3c
jmp 0x2000f8cc
push str.photo.wlt
lea eax, [esp + 0x1e8]
push 0x2002078c
push eax
call fcn.2001364c
push str.photo.bmp
lea ecx, [esp + 0x2f8]
push 0x2002078c
push ecx
call fcn.2001364c
push str.photo.jpg
lea edx, [esp + 0x408]
push 0x2002078c
push edx
call fcn.2001364c
add esp, 0x24
lea eax, [esp + 0x1e4]
push 0x20020708
push eax
call fcn.200141ea
mov esi, eax
add esp, 8
test esi, esi
jne 0x2000f8ef
lea eax, [esi + 4]
jmp 0x2000fd4e
push edi
mov edi, dword [esp + 0x10]
push esi
push edi
lea ecx, [esp + 0x600]
push 1
push ecx
call fcn.200140a4
add esp, 0x10
push esi
cmp edi, eax
je 0x2000f91c
call fcn.20013ec6
add esp, 4
xor eax, eax
jmp 0x2000fd4d
call fcn.20013ec6
add esp, 4
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea edx, [esp + 0x4f8]
push edx
push 0x2002049c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x4f4]
push 0x5c
push eax
call fcn.20012f10
mov ecx, dword [str.dewlt.dll]
mov dword [eax], ecx
mov edx, dword [0x20020784]
mov dword [eax + 4], edx
mov cx, word [0x20020788]
mov word [eax + 8], cx
mov dl, byte [0x2002078a]
mov byte [eax + 0xa], dl
add esp, 8
lea eax, [esp + 0x4f4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x2000f99e
lea eax, [esi - 4]
jmp 0x2000fd4d
push str.dewlt
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x2000f9bf
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 4
jmp 0x2000fd4d
lea ecx, [esp + 0x1e8]
push ecx
call eax
cmp eax, 1
je 0x2000f9df
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xfffffffb
jmp 0x2000fd4d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
push eax
push eax
push 0x1e
lea edx, [esp + 0x4c]
push edx
push 0xf
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov word [esp + 0x70], ax
lea eax, [esp + 0x100]
push eax
push 0
push 0
call ebx
mov eax, 0x1d
mov edi, edi
cmp byte [esp + eax + 0x40], 0x20
jne 0x2000fa43
cmp byte [esp + eax + 0x41], 0
jne 0x2000fa43
mov byte [esp + eax + 0x40], 0
dec eax
test eax, eax
jg 0x2000fa30
cmp byte [esp + 0x10a], 0x31
mov ecx, 7
lea esi, [esp + 0x40]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jne 0x2000fa6c
mov ecx, 0xd0c4
mov word [ebp + 0x1f], cx
jmp 0x2000fa75
mov edx, 0xaec5
mov word [ebp + 0x1f], dx
xor eax, eax
push eax
push eax
push 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], al
lea eax, [esp + 0x24]
push eax
push 2
lea ecx, [esp + 0x120]
push ecx
push 0
push 0
call ebx
lea edx, [esp + 0x18]
push edx
call fcn.20014217
mov esi, dword [eax*4 + 0x20026274]
mov ecx, esi
add esp, 4
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x2000fab1
sub ecx, edi
push ecx
lea eax, [ebp + 0x22]
push esi
push eax
call fcn.20013870
add esp, 0xc
xor eax, eax
push eax
push eax
push 0x10
lea ecx, [esp + 0x3c]
push ecx
push 8
lea edx, [esp + 0x124]
push edx
push eax
push eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
call ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push 0x46
lea edx, [esp + 0xa8]
push 0
push edx
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x30], ecx
call fcn.200132c0
add esp, 0xc
push 0
push 0
push 0x46
lea eax, [esp + 0xb0]
push eax
push 0x23
lea ecx, [esp + 0x134]
push ecx
push 0
push 0
call ebx
mov eax, 0x45
cmp byte [esp + eax + 0xa4], 0x20
jne 0x2000fb52
cmp byte [esp + eax + 0xa5], 0
jne 0x2000fb52
mov byte [esp + eax + 0xa4], 0
cmp byte [esp + eax + 0xa3], 0x20
jne 0x2000fb6e
cmp byte [esp + eax + 0xa4], 0
jne 0x2000fb6e
mov byte [esp + eax + 0xa3], 0
cmp byte [esp + eax + 0xa2], 0x20
jne 0x2000fb8a
cmp byte [esp + eax + 0xa3], 0
jne 0x2000fb8a
mov byte [esp + eax + 0xa2], 0
sub eax, 3
test eax, eax
jg 0x2000fb36
xor eax, eax
push eax
push eax
lea edi, [ebp + 0x35]
mov ecx, 0x11
lea esi, [esp + 0xac]
push 0x24
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x8c]
push edx
push 0x12
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
lea eax, [esp + 0x17a]
push eax
push 0
push 0
movsw word es:[edi], word [esi]
call ebx
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
mov dword [ebp + 0x7c], ecx
mov ecx, dword [esp + 0x8c]
mov dword [ebp + 0x80], edx
mov dx, word [esp + 0x90]
mov dword [ebp + 0x84], eax
xor eax, eax
push eax
push eax
push 0x1e
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov word [esp + 0x88], ax
lea eax, [esp + 0x6c]
push eax
mov dword [ebp + 0x88], ecx
push 0xf
lea ecx, [esp + 0x19e]
push ecx
push 0
push 0
mov word [ebp + 0x8c], dx
call ebx
mov eax, 0x1d
jmp 0x2000fc90
cmp byte [esp + eax + 0x60], 0x20
jne 0x2000fca3
cmp byte [esp + eax + 0x61], 0
jne 0x2000fca3
mov byte [esp + eax + 0x60], 0
dec eax
test eax, eax
jg 0x2000fc90
xor eax, eax
push eax
push eax
lea edi, [ebp + 0x8f]
mov ecx, 7
lea esi, [esp + 0x68]
push 0x10
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x2c]
push edx
push 8
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x1bc]
push eax
push 0
push 0
movsw word es:[edi], word [esi]
call ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor eax, eax
push eax
push eax
push 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
push 8
mov dword [ebp + 0xae], ecx
lea ecx, [esp + 0x1cc]
push ecx
push 0
push 0
mov dword [ebp + 0xb2], edx
call ebx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [ebp + 0xbb], eax
mov eax, dword [esp + 0x10]
mov dword [ebp + 0xb7], edx
pop ebx
test eax, eax
je 0x2000fd48
mov dword [eax], 0xc0
mov eax, 1
pop edi
mov ecx, dword [esp + 0x9f4]
pop esi
pop ebp
xor ecx, esp
call fcn.20012ef0
add esp, 0x9f0
ret 0xc