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

Disassembly:
sub esp, 0x7e8
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0x7e4], eax
mov eax, dword [esp + 0x7f0]
push ebp
mov ebp, dword [esp + 0x7f0]
mov dword [esp + 8], eax
test ebp, ebp
jne 0x2000f1e5
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x7e4]
xor ecx, esp
call fcn.20012ef0
add esp, 0x7e8
ret 8
mov eax, dword [0x2002b328]
test eax, eax
jle 0x2000f1f3
cmp eax, 0x11
jl 0x2000f211
cmp eax, 0x3e8
jle 0x2000f201
cmp eax, 0x3f9
jl 0x2000f211
cmp eax, dword [0x20026270]
je 0x2000f211
cmp eax, dword [0x20026208]
jne 0x2000f1cb
push 0xc0
push 0
push ebp
call fcn.200132c0
add esp, 0xc
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x3f0]
push edx
mov edx, dword [0x2002b328]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xf0]
push ecx
push edx
call sym.SDTAPI.DLL_SDT_ReadBaseMsg
cmp eax, 0x90
jne 0x2000f1cb
push 0x102
lea ecx, [esp + 0x1e6]
mov eax, 0x5c
push 0
push ecx
mov word [esp + 0x1ec], ax
call fcn.200132c0
add esp, 0xc
push 0x104
lea edx, [esp + 0x2e8]
push edx
push 0x2002049c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x1e0]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x2000f2a0
mov ecx, dword [str.photo.wlt]
mov edx, dword [0x20020770]
mov dword [eax], ecx
mov cx, word [0x20020774]
push esi
mov dword [eax + 4], edx
lea edx, [esp + 0x2e8]
push 0x5c
push edx
mov word [eax + 8], cx
lea esi, [esp + 0x1ec]
call fcn.20012f10
add esp, 8
mov edi, edi
mov cl, byte [esi]
mov byte [eax], cl
inc esi
inc eax
test cl, cl
jne 0x2000f2e0
lea eax, [esp + 0x2e8]
push 0x20020708
push eax
call fcn.200141ea
mov esi, eax
add esp, 8
test esi, esi
je 0x2000f6b0
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
lea ecx, [esp + 0x3f8]
push 1
push ecx
call fcn.200140a4
add esp, 0x10
cmp edi, eax
je 0x2000f336
push esi
call fcn.20013ec6
add esp, 4
xor eax, eax
jmp 0x2000f6af
push ebx
push esi
call fcn.20013ec6
add esp, 4
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
push eax
push eax
push 0x1e
lea edx, [esp + 0x6c]
push edx
push 0xf
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 dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov word [esp + 0x90], ax
lea eax, [esp + 0x100]
push eax
push 0
push 0
call ebx
mov eax, 0x1d
mov edi, edi
cmp byte [esp + eax + 0x60], 0x20
jne 0x2000f3b3
cmp byte [esp + eax + 0x61], 0
jne 0x2000f3b3
mov byte [esp + eax + 0x60], 0
dec eax
test eax, eax
jg 0x2000f3a0
cmp byte [esp + 0x10a], 0x31
mov ecx, 7
lea esi, [esp + 0x60]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jne 0x2000f3dc
mov ecx, 0xd0c4
mov word [ebp + 0x1f], cx
jmp 0x2000f3e5
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 0x2000f421
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 0x2000f4c2
cmp byte [esp + eax + 0xa5], 0
jne 0x2000f4c2
mov byte [esp + eax + 0xa4], 0
cmp byte [esp + eax + 0xa3], 0x20
jne 0x2000f4de
cmp byte [esp + eax + 0xa4], 0
jne 0x2000f4de
mov byte [esp + eax + 0xa3], 0
cmp byte [esp + eax + 0xa2], 0x20
jne 0x2000f4fa
cmp byte [esp + eax + 0xa3], 0
jne 0x2000f4fa
mov byte [esp + eax + 0xa2], 0
sub eax, 3
test eax, eax
jg 0x2000f4a6
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 + 0x4c], eax
mov dword [esp + 0x50], eax
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 word [esp + 0x68], ax
lea eax, [esp + 0x4c]
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
cmp byte [esp + eax + 0x40], 0x20
jne 0x2000f605
cmp byte [esp + eax + 0x41], 0
jne 0x2000f605
mov byte [esp + eax + 0x40], 0
dec eax
test eax, eax
jg 0x2000f5f2
xor eax, eax
push eax
push eax
lea edi, [ebp + 0x8f]
mov ecx, 7
lea esi, [esp + 0x48]
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 + 0x14]
mov dword [ebp + 0xb7], edx
pop ebx
test eax, eax
je 0x2000f6aa
mov dword [eax], 0xc0
mov eax, 1
pop edi
mov ecx, dword [esp + 0x7ec]
pop esi
pop ebp
xor ecx, esp
call fcn.20012ef0
add esp, 0x7e8
ret 8