Function at 0x1003bff0
Capabilities:
Create directory
Read .ini file
Write file on windows

Disassembly:
sub esp, 0x290
mov eax, dword [0x10082594]
xor eax, esp
mov dword [esp + 0x28c], eax
cmp dword [0x10081b04], 0
mov eax, dword [esp + 0x2a8]
push ebx
push ebp
mov ebp, dword [esp + 0x2a8]
push esi
mov dword [esp + 0x10], eax
je 0x1003c111
call fcn.10025010
push eax
push str._sdxwnd.ini
lea ecx, [esp + 0x98]
push 0x104
push ecx
call fcn.10047c9e
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x10
lea edx, [esp + 0x90]
push edx
push 0
push str.MinTexX
push str.Texture
call esi
mov dword [0x10088c2c], eax
lea eax, [esp + 0x90]
push eax
push 0
push str.MaxTexX
push str.Texture
call esi
lea ecx, [esp + 0x90]
push ecx
push 0
push str.MinTexY
push str.Texture
mov dword [0x10088c28], eax
call esi
lea edx, [esp + 0x90]
push edx
push 0
push str.MaxTexY
push str.Texture
mov dword [0x10088c24], eax
call esi
mov ecx, dword [0x10088c24]
mov edx, dword [0x10088c2c]
push eax
mov dword [0x10088c20], eax
mov eax, dword [0x10088c28]
push eax
push ecx
push edx
push str.TextureDump:_size_min__dx_d__max__dx_d__n
call fcn.10025250
call fcn.10025010
push eax
push str._s_texture.out
lea eax, [esp + 0x1b0]
push 0x104
push eax
call fcn.10047c9e
add esp, 0x24
push 0
lea ecx, [esp + 0x198]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [0x10081b04], 0
mov ebx, dword [esp + 0x2a8]
cmp ebx, dword [0x10088c2c]
jl 0x1003c350
cmp ebp, dword [0x10088c24]
jl 0x1003c350
mov eax, dword [esp + 0x2a4]
cmp eax, 0x80e1
ja 0x1003c350
push edi
cmp eax, 0x80e0
jae 0x1003c1a0
cmp eax, 0x1907
jb 0x1003c34f
cmp eax, 0x1908
ja 0x1003c34f
mov ecx, dword [esp + 0x2b4]
cmp ecx, 0x1400
jb 0x1003c34f
cmp ecx, 0x1401
ja 0x1003c34f
xor edx, edx
cmp eax, 0x1908
setne dl
mov esi, 0xff
mov edi, 0xff0000
dec edx
and edx, 0xff000000
mov dword [esp + 0x10], edx
jmp 0x1003c1de
mov ecx, dword [esp + 0x2b4]
cmp ecx, 0x1400
jb 0x1003c34f
cmp ecx, 0x1401
ja 0x1003c34f
xor ecx, ecx
cmp eax, 0x1908
setne cl
mov esi, 0xff0000
mov edi, 0xff
dec ecx
and ecx, 0xff000000
mov dword [esp + 0x10], ecx
push 0x6c
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.10048620
mov eax, 0x20
mov word [esp + 0x42], ax
mov eax, ebx
shl eax, 5
add eax, 0x1f
and eax, 0xffffffe0
cdq
and edx, 7
add eax, edx
mov dword [esp + 0x38], ebx
mov ebx, eax
sar ebx, 3
mov ecx, ebx
imul ecx, ebp
mov dword [esp + 0x5c], esi
mov esi, ebx
imul esi, ebp
mov eax, 1
mov edx, ebp
neg edx
mov dword [esp + 0x48], ecx
mov ecx, eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x28], 0x6c
mov word [esp + 0x34], cx
mov dword [esp + 0x38], 3
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], 0xff00
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
call fcn.1003bfc0
mov ecx, dword [esp + 0x2b4]
mov edx, dword [esp + 0x2a8]
push eax
mov eax, dword [esp + 0x2b0]
push ebp
push eax
mov eax, dword [esp + 0x2b0]
push ecx
push edx
push eax
call fcn.10025010
push eax
push str._s_texture.out_texture.I_x.F_x.T_x._03d._03d._08X.bmp
lea ecx, [esp + 0x1b8]
push 0x104
push ecx
call fcn.10047c9e
lea edx, [esp + 0x1c0]
push edx
push str.writing_to__s_n
call fcn.10025250
lea eax, [esp + 0x1c8]
push 0x1005eeb4
push eax
call fcn.10047a23
mov esi, eax
add esp, 0x38
test esi, esi
je 0x1003c34f
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
mov ecx, 0x4d42
mov word [esp + 0x18], cx
mov ecx, dword [esp + 0x28]
lea edx, [edx + eax*4]
push esi
lea edx, [edx + ecx + 0xe]
lea eax, [ecx + eax*4 + 0xe]
push 1
mov dword [esp + 0x22], edx
xor edx, edx
lea ecx, [esp + 0x20]
push 0xe
push ecx
mov word [esp + 0x2e], dx
mov word [esp + 0x30], dx
mov dword [esp + 0x32], eax
call fcn.100478dd
push esi
push 1
lea edx, [esp + 0x40]
push 0x6c
push edx
call fcn.100478dd
push esi
push ebp
mov eax, edi
push ebx
push eax
call fcn.100478dd
push esi
call fcn.100476ff
add esp, 0x34
pop edi
mov ecx, dword [esp + 0x298]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10047cbc
add esp, 0x290
ret