Function at 0x414ed0
Capabilities:
Create directory
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53e808
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x591a60]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x1dc], ebx
je 0x414f23
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x1dc], 1
cmp dword [esi + 0xbc], ebx
je 0x414f0b
mov eax, dword [esi + 0x4a8]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
mov edi, dword [eax + 0x14]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], ebx
call fcn.00403ec0
add esp, 4
push 0x56a1ae
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8c], ebx
call fcn.00403e00
push 0x56a1ae
lea ecx, [esp + 0x28]
mov byte [esp + 0x8c], 1
call fcn.00403e00
mov byte [esp + 0x88], 2
mov ecx, dword [esp + 0x24]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esi + 0x4a8]
cmp dword [eax + 0xc], 1
jne 0x415499
cmp edi, ebx
jle 0x415698
mov al, byte [esi + 0xf2]
mov ebx, dword [esp + 0x20]
mov edi, dword [esi + 0xbc]
mov dl, byte [esi + 0xf3]
sar ebx, 8
mov dword [esp + 0x1c], 0
mov byte [esp + 0x5c], al
mov eax, dword [edi + 4]
and ebx, 0x3f
mov byte [esp + 0x60], dl
test eax, eax
jne 0x41500b
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
push ecx
push edx
push ebx
push 3
push eax
call dword [sym.imp.dtccm2.dll_WriteSensorReg]
add esp, 0x14
jmp 0x41501f
cmp eax, 1
jne 0x41501f
mov ecx, dword [esp + 0x5c]
push eax
push 2
push 3
push ecx
call fcn.00403530
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dl, byte [esi + 0xf3]
mov al, byte [esi + 0xf2]
mov byte [esp + 0x78], dl
mov edx, dword [esi + 0xbc]
mov byte [esp + 0x48], al
mov eax, dword [edx + 4]
test eax, eax
jne 0x415068
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
lea eax, [esp + 0x24]
push eax
push 3
push ecx
call dword [sym.imp.dtccm2.dll_ReadSensorReg]
add esp, 0x14
jmp 0x415085
cmp eax, 1
jne 0x415085
mov ecx, dword [esp + 0x48]
push eax
lea eax, [esp + 0x20]
push eax
mov eax, 2
push ecx
lea ecx, [eax + 1]
call fcn.00403660
mov dword [esp + 0x14], 0
cmp word [esp + 0x1c], bx
je 0x415161
mov al, byte [esi + 0xf2]
mov edi, dword [esi + 0xbc]
mov dl, byte [esi + 0xf3]
mov byte [esp + 0x40], al
mov eax, dword [edi + 4]
mov byte [esp + 0x74], dl
test eax, eax
jne 0x4150d5
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x40]
push ecx
push edx
push ebx
push 3
push eax
call dword [sym.imp.dtccm2.dll_WriteSensorReg]
add esp, 0x14
jmp 0x4150e9
cmp eax, 1
jne 0x4150e9
mov ecx, dword [esp + 0x40]
push eax
push 2
push 3
push ecx
call fcn.00403530
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dl, byte [esi + 0xf3]
mov al, byte [esi + 0xf2]
mov byte [esp + 0x6c], dl
mov edx, dword [esi + 0xbc]
mov byte [esp + 0x58], al
mov eax, dword [edx + 4]
test eax, eax
jne 0x415132
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
lea eax, [esp + 0x24]
push eax
push 3
push ecx
call dword [sym.imp.dtccm2.dll_ReadSensorReg]
add esp, 0x14
jmp 0x41514f
cmp eax, 1
jne 0x41514f
mov ecx, dword [esp + 0x58]
push eax
lea eax, [esp + 0x20]
push eax
mov eax, 2
push ecx
lea ecx, [eax + 1]
call fcn.00403660
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0x32
jl 0x41508d
mov al, byte [esi + 0xf2]
mov edi, dword [esi + 0xbc]
mov dl, byte [esi + 0xf3]
movzx ebx, byte [esp + 0x20]
mov byte [esp + 0x50], al
mov eax, dword [edi + 4]
mov byte [esp + 0x64], dl
test eax, eax
jne 0x4151a3
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
push ecx
push edx
push ebx
push 4
push eax
call dword [sym.imp.dtccm2.dll_WriteSensorReg]
add esp, 0x14
jmp 0x4151b7
cmp eax, 1
jne 0x4151b7
mov ecx, dword [esp + 0x50]
push eax
push 2
push 4
push ecx
call fcn.00403530
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dl, byte [esi + 0xf3]
mov al, byte [esi + 0xf2]
mov byte [esp + 0x68], dl
mov edx, dword [esi + 0xbc]
mov byte [esp + 0x44], al
mov eax, dword [edx + 4]
test eax, eax
jne 0x415200
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x48]
push edx
lea eax, [esp + 0x24]
push eax
push 4
push ecx
call dword [sym.imp.dtccm2.dll_ReadSensorReg]
add esp, 0x14
jmp 0x41521d
cmp eax, 1
jne 0x41521d
mov ecx, dword [esp + 0x44]
push eax
lea eax, [esp + 0x20]
push eax
mov eax, 2
push ecx
lea ecx, [eax + 2]
call fcn.00403660
mov dword [esp + 0x14], 0
cmp word [esp + 0x1c], bx
je 0x4152f9
mov al, byte [esi + 0xf2]
mov edi, dword [esi + 0xbc]
mov dl, byte [esi + 0xf3]
mov byte [esp + 0x4c], al
mov eax, dword [edi + 4]
mov byte [esp + 0x70], dl
test eax, eax
jne 0x41526d
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x4c]
push ecx
push edx
push ebx
push 4
push eax
call dword [sym.imp.dtccm2.dll_WriteSensorReg]
add esp, 0x14
jmp 0x415281
cmp eax, 1
jne 0x415281
mov ecx, dword [esp + 0x4c]
push eax
push 2
push 4
push ecx
call fcn.00403530
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dl, byte [esi + 0xf3]
mov al, byte [esi + 0xf2]
mov byte [esp + 0x3c], dl
mov edx, dword [esi + 0xbc]
mov byte [esp + 0x54], al
mov eax, dword [edx + 4]
test eax, eax
jne 0x4152ca
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x58]
push edx
lea eax, [esp + 0x24]
push eax
push 4
push ecx
call dword [sym.imp.dtccm2.dll_ReadSensorReg]
add esp, 0x14
jmp 0x4152e7
cmp eax, 1
jne 0x4152e7
mov ecx, dword [esp + 0x54]
push eax
lea eax, [esp + 0x20]
push eax
mov eax, 2
push ecx
lea ecx, [eax + 2]
call fcn.00403660
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0x32
jl 0x415225
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
push edi
push edx
lea eax, [esp + 0x2c]
push str._s_d
push eax
call fcn.00401640
mov ecx, dword [esp + 0x34]
add esp, 0x10
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add edi, dword [esp + 0x38]
push 0xc8
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040c410
call fcn.0040c410
call fcn.0040c410
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x2c], ebx
jle 0x415481
call fcn.0040c410
mov edx, dword [esp + 0x24]
push ebx
push edx
lea eax, [esp + 0x20]
push str._s_d.bmp
push eax
call fcn.00401640
mov al, byte [esi + 0xf0]
add esp, 0x10
test al, al
je 0x415383
cmp al, 6
jne 0x415413
movzx edx, word [esi + 0xec]
movzx eax, word [esi + 0xee]
imul eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
xor ecx, ecx
xor edi, edi
xor ebx, ebx
test eax, eax
jle 0x41540f
jmp 0x4153b0
mov eax, dword [esi + 0x198]
movzx edx, byte [eax + edi]
mov byte [eax + ecx], dl
mov eax, dword [esi + 0x198]
movzx edx, byte [eax + edi + 1]
mov byte [eax + ecx + 1], dl
mov eax, dword [esi + 0x198]
movzx edx, byte [eax + edi + 2]
mov byte [eax + ecx + 2], dl
mov eax, dword [esi + 0x198]
movzx edx, byte [eax + edi + 3]
mov byte [eax + ecx + 3], dl
movzx edx, word [esi + 0xec]
movzx eax, word [esi + 0xee]
imul eax, edx
cdq
and edx, 3
add eax, edx
inc ebx
sar eax, 2
add ecx, 4
add edi, 5
cmp ebx, eax
jl 0x4153b0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx - 8]
mov eax, 1
sub eax, dword [ecx - 4]
or edx, eax
jge 0x415435
push 0
lea ecx, [esp + 0x1c]
call fcn.004014d0
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x198]
movzx edx, word [esi + 0xee]
movzx edi, word [esi + 0xec]
test eax, eax
je 0x41545a
push edx
push edi
push eax
mov edx, 8
call fcn.00407280
mov eax, dword [esp + 0x28]
inc ebx
push ebx
push eax
lea ecx, [esp + 0x20]
push str.Step_d_Img_d
push ecx
mov dword [esp + 0x24], ebx
call fcn.00401640
add esp, 0x10
cmp ebx, dword [esp + 0x2c]
jl 0x415354
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x30]
jl 0x414fbc
jmp 0x415696
cmp dword [eax + 0x10], ebx
je 0x415698
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x20], ebx
mov ebx, dword [eax + 0x20]
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], 0
test ebx, ebx
jle 0x415696
fild dword [esp + 0x20]
mov edx, dword [esi + 0xbc]
fdiv qword [0x56c150]
fadd qword [0x56c100]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fstp dword [edx + 0x17c]
mov ecx, dword [esi + 0xbc]
call fcn.004023b0
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
push edi
push eax
lea ecx, [esp + 0x2c]
push str._s_d
push ecx
call fcn.00401640
mov edx, dword [esp + 0x34]
add esp, 0x10
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add edi, dword [esp + 0x38]
push 0xc8
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040c410
call fcn.0040c410
call fcn.0040c410
xor edi, edi
mov dword [esp + 0x14], edi
cmp dword [esp + 0x2c], edi
jle 0x415685
call fcn.0040c410
mov eax, dword [esp + 0x24]
push edi
push eax
lea ecx, [esp + 0x20]
push str._s_d.bmp
push ecx
call fcn.00401640
mov al, byte [esi + 0xf0]
add esp, 0x10
test al, al
je 0x415584
cmp al, 6
jne 0x415613
movzx edx, word [esi + 0xec]
movzx eax, word [esi + 0xee]
imul eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
xor ecx, ecx
xor edi, edi
xor ebx, ebx
test eax, eax
jle 0x41560f
jmp 0x4155b0
mov eax, dword [esi + 0x198]
movzx edx, byte [eax + edi]
mov byte [eax + ecx], dl
mov eax, dword [esi + 0x198]
movzx edx, byte [eax + edi + 1]
mov byte [eax + ecx + 1], dl
mov eax, dword [esi + 0x198]
movzx edx, byte [eax + edi + 2]
mov byte [eax + ecx + 2], dl
mov eax, dword [esi + 0x198]
movzx edx, byte [eax + edi + 3]
mov byte [eax + ecx + 3], dl
movzx edx, word [esi + 0xec]
movzx eax, word [esi + 0xee]
imul eax, edx
cdq
and edx, 3
add eax, edx
inc ebx
sar eax, 2
add ecx, 4
add edi, 5
cmp ebx, eax
jl 0x4155b0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx - 8]
mov eax, 1
sub eax, dword [ecx - 4]
or edx, eax
jge 0x415635
push 0
lea ecx, [esp + 0x1c]
call fcn.004014d0
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x198]
movzx edx, word [esi + 0xee]
movzx ebx, word [esi + 0xec]
test eax, eax
je 0x41565a
push edx
push ebx
push eax
mov edx, 8
call fcn.00407280
mov eax, dword [esp + 0x28]
inc edi
push edi
push eax
lea ecx, [esp + 0x20]
push str.Step_d_Img_d
push ecx
mov dword [esp + 0x24], edi
call fcn.00401640
add esp, 0x10
cmp edi, dword [esp + 0x2c]
jl 0x415555
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, ebx
jl 0x4154cb
xor ebx, ebx
push ebx
push ebx
push str.Done_
mov dword [esi + 0x1dc], ebx
call fcn.00418898
mov byte [esp + 0x88], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4156d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4156fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415725
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret