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

Disassembly:
sub esp, 0x830
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0x82c], eax
mov eax, dword [esp + 0x838]
mov ecx, dword [esp + 0x83c]
mov edx, dword [esp + 0x844]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x848]
push ebx
mov ebx, dword [esp + 0x844]
push esi
mov esi, dword [esp + 0x83c]
mov dword [esp + 0x20], eax
mov eax, dword [0x2002b328]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x858]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x85c]
push edi
mov edi, dword [esp + 0x858]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
test eax, eax
jle 0x2001029c
cmp eax, 0x11
jl 0x200102be
cmp eax, 0x3e8
jle 0x200102aa
cmp eax, 0x3f9
jl 0x200102be
cmp eax, dword [0x20026270]
je 0x200102be
cmp eax, dword [0x20026208]
jne 0x200106ab
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x440]
push edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
call sym.SDTAPI.DLL_SDT_ReadBaseMsg
cmp eax, 0x90
jne 0x2001069d
push ebp
push str.photo.wlt
push 0x20020500
lea eax, [esp + 0x340]
push str._s_s
push eax
call fcn.2001364c
add esp, 0x10
push 0x104
lea ecx, [esp + 0x134]
push ecx
push 0x2002049c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x130]
push 0x5c
push edx
lea ebp, [esp + 0x340]
call fcn.20013122
add esp, 8
mov cl, byte [ebp]
mov byte [eax], cl
inc ebp
inc eax
test cl, cl
jne 0x20010340
lea eax, [esp + 0x130]
push 0x20020708
push eax
call fcn.200141ea
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x20010682
mov ecx, dword [esp + 0x14]
push ebp
push ecx
lea edx, [esp + 0x444]
push 1
push edx
call fcn.200140a4
add esp, 0x10
cmp dword [esp + 0x14], eax
je 0x200103a0
push ebp
call fcn.20013ec6
push 0x90
push str.Write_filewlt_error__r_n
call fcn.20013587
add esp, 0xc
push ebp
call fcn.20013ec6
add esp, 4
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea eax, [esp + 0x238]
push eax
push 0x2002049c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x234]
push 0x5c
push ecx
call fcn.20012f10
mov edx, dword [str.dewlt.dll]
mov dword [eax], edx
mov ecx, dword [0x20020784]
mov dword [eax + 4], ecx
mov dx, word [0x20020788]
mov word [eax + 8], dx
mov cl, byte [0x2002078a]
add esp, 8
lea edx, [esp + 0x234]
push edx
mov byte [eax + 0xa], cl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
jne 0x20010423
lea eax, [ebp - 4]
jmp 0x20010682
push str.dewlt
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x20010444
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 4
jmp 0x20010682
lea ecx, [esp + 0x130]
push ecx
call eax
push ebp
cmp eax, 1
je 0x20010464
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xfffffffb
jmp 0x20010682
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
push eax
push eax
mov dword [esi], eax
push 0x1e
mov dword [esi + 4], eax
push esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push 0xf
mov dword [esi + 0x10], eax
lea edx, [esp + 0x44]
push edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
push eax
mov word [esi + 0x1c], ax
push eax
mov byte [esi + 0x1e], al
call ebp
mov eax, 0x1d
cmp byte [esi + eax], 0x20
jne 0x200104b3
cmp byte [esi + eax + 1], 0
jne 0x200104b3
mov byte [esi + eax], 0
dec eax
test eax, eax
jg 0x200104a2
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp byte [esp + 0x4e], 0x31
mov word [ecx], ax
mov byte [ecx + 2], al
jne 0x200104d5
mov eax, 0xd0c4
mov word [ecx], ax
jmp 0x200104dd
mov edx, 0xaec5
mov word [ecx], dx
push 0
push 0
push 2
lea eax, [esp + 0x1c]
push eax
push 2
lea ecx, [esp + 0x64]
push ecx
push 0
push 0
mov dword [esp + 0x30], 0
call ebp
lea edx, [esp + 0x10]
push edx
call fcn.20014217
mov eax, dword [eax*4 + 0x20026274]
mov edx, dword [esp + 0x1c]
add esp, 4
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov word [edx + 8], cx
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x20010525
sub ecx, esi
push ecx
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.20013870
add esp, 0xc
xor eax, eax
push eax
push eax
push 8
push ebx
push 8
lea ecx, [esp + 0x68]
push ecx
mov dword [ebx], eax
push eax
mov dword [ebx + 4], eax
push eax
mov byte [ebx + 8], al
call ebp
mov esi, dword [esp + 0x28]
push 0x47
push 0
push esi
call fcn.200132c0
add esp, 0xc
push 0
push 0
push 0x46
push esi
push 0x23
lea edx, [esp + 0x78]
push edx
push 0
push 0
call ebp
mov ecx, 1
lea eax, [esi + 0x44]
sub ecx, esi
cmp byte [eax + 1], 0x20
jne 0x2001059a
lea edx, [ecx + eax]
cmp byte [edx + esi + 1], 0
jne 0x2001059a
mov byte [eax + 1], 0
cmp byte [eax], 0x20
jne 0x200105a8
cmp byte [eax + 1], 0
jne 0x200105a8
mov byte [eax], 0
cmp byte [eax - 1], 0x20
jne 0x200105b7
cmp byte [eax], 0
jne 0x200105b7
mov byte [eax - 1], 0
sub eax, 3
lea edx, [ecx + eax]
test edx, edx
jg 0x20010586
mov ecx, dword [esp + 0x20]
xor eax, eax
push eax
push eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
push 0x12
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
push ecx
mov word [ecx + 0x10], ax
push 0x12
mov byte [ecx + 0x12], al
lea eax, [esp + 0xbe]
push eax
push 0
push 0
call ebp
xor eax, eax
push eax
push eax
mov dword [edi], eax
push 0x1e
mov dword [edi + 4], eax
push edi
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
push 0xf
mov dword [edi + 0x10], eax
lea ecx, [esp + 0xe2]
push ecx
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
push eax
mov word [edi + 0x1c], ax
push eax
mov byte [edi + 0x1e], al
call ebp
mov eax, 0x1d
cmp byte [edi + eax], 0x20
jne 0x20010634
cmp byte [edi + eax + 1], 0
jne 0x20010634
mov byte [edi + eax], 0
dec eax
test eax, eax
jg 0x20010623
mov ecx, dword [esp + 0x1c]
xor eax, eax
push eax
push eax
push 8
push ecx
push 8
lea edx, [esp + 0x100]
push edx
mov dword [ecx], eax
push eax
mov dword [ecx + 4], eax
push eax
mov byte [ecx + 8], al
call ebp
mov ecx, dword [esp + 0x2c]
xor eax, eax
push eax
push eax
push 8
mov dword [ecx], eax
push ecx
mov dword [ecx + 4], eax
push 8
mov byte [ecx + 8], al
lea eax, [esp + 0x110]
push eax
push 0
push 0
call ebp
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x838]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.20012ef0
add esp, 0x830
ret 0x24
push eax
push str.SDT_ReadBaseMsg_d_r_n
call fcn.20013587
add esp, 8
xor eax, eax
jmp 0x20010683