Function at 0x10010890
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x338
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34c]
push edi
xor ebp, ebp
mov eax, dword [esi + 4]
xor edi, edi
test ah, 0xff
je 0x100108c0
push edi
push eax
push 0xfffff690
push 0x7a
push str.C:_accusoftgearSourceLoadBatch.c
call fcn.10046940
call fcn.10046b40
test eax, eax
jne 0x10010e76
mov ecx, dword [esi + 8]
lea eax, [esp + 0x248]
and ecx, 0xff
push eax
push ecx
call fcn.10049070
cmp eax, 0xfffff7c2
je 0x10010ec3
mov edx, dword [esi]
push edx
call fcn.10010ef0
test eax, eax
je 0x10010ea2
mov eax, dword [esp + 0x354]
test eax, eax
je 0x10010926
push 0x1011a24c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1001092a
mov edi, 0xfffff811
jmp 0x1001092a
mov ebx, dword [esp + 0x10]
test edi, edi
jne 0x10010e88
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x18], eax
call fcn.100a0c60
push 0x106
push eax
mov dword [esp + 0x3c], eax
call fcn.100a0c80
mov ebp, eax
push 0x104
mov esi, dword [esp + 0x350]
mov eax, dword [esi + 4]
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, dword [esi + 4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x100fba04
mov byte [ecx + ebp], 0x3b
mov edi, dword [esi + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + ebp + 1], al
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.MSVCRT.dll_strtok]
xor ecx, ecx
add esp, 8
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ecx
je 0x10010e24
mov ebp, dword [sym.imp.MSVCRT.dll_fprintf]
jmp 0x100109ca
mov esi, dword [esp + 0x34c]
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x5c
je 0x10010a38
mov edi, 0x100fba00
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov dword [esp + 0x1c], eax
mov edi, edx
mov edx, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
push 0x140
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov eax, ecx
mov esi, edi
mov dword [esp + 0x18], eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
dec edi
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov ecx, dword [esp + 0x18]
push esi
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test eax, eax
mov dword [esp + 0x14], eax
je 0x10010e08
cmp eax, 0xffffffff
je 0x10010e08
add esi, 0x2c
mov dword [esp + 0x2c], esi
mov edx, dword [esp + 0x34c]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x40]
mov edx, dword [edx]
mov dword [esp + 0x10], esi
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x3f], 0x5c
je 0x10010b19
mov edi, 0x100fba00
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x350]
or ecx, 0xffffffff
lea edx, [esp + 0x144]
mov edi, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x144]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x143], 0x5c
je 0x10010b92
mov edi, 0x100fba00
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x144]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x144]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
movsx eax, byte [0x100fba08]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x148]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov byte [eax + 1], 0
lea edi, [esp + 0x250]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x144]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x40]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x40]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_CharLowerA]
lea ecx, [esp + 0x38]
push 0
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call sym.GEAR32PO.OCX_IG_info_get
test eax, eax
jne 0x10010ddd
lea ecx, [esp + 0x28]
lea edx, [esp + 0x40]
push ecx
push edx
call sym.GEAR32PO.OCX_IG_page_count_get
test eax, eax
jne 0x10010ddd
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x10010cb1
push 0
push 0
push 0xfffff812
push 0xaf
push str.C:_accusoftgearSourceLoadBatch.c
call fcn.10046940
jmp 0x10010dd6
mov eax, dword [esp + 0x28]
mov edi, 1
cmp eax, edi
mov dword [esp + 0x1c], edi
jb 0x10010dd6
lea ecx, [esp + 0x30]
push ecx
push 0
push edi
push 0
push esi
call sym.GEAR32PO.OCX_IG_load_FD
mov esi, eax
test esi, esi
je 0x10010d26
mov eax, dword [esp + 0x354]
test eax, eax
je 0x10010d26
push 0
lea edx, [esp + 0x44]
push 0
push edx
push str.Image:__s_t__d__d__t
push ebx
call ebp
add esp, 0x14
lea eax, [esp + 0x20]
dec esi
push 0
push 0
push eax
push 0
push 0
push 0
push esi
call fcn.10046a10
mov ecx, dword [esp + 0x20]
push ecx
push str.File_Load_Error:__t__d__n
push ebx
call ebp
add esp, 0xc
jmp 0x10010dc1
mov edi, dword [esp + 0x350]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x144]
mov edx, dword [edi + 8]
push edx
push eax
push ecx
call sym.GEAR32PO.OCX_IG_save_file
mov esi, eax
mov eax, dword [esp + 0x354]
test eax, eax
je 0x10010db3
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
push str.Image:__s_t__d__d__t
push ebx
call ebp
add esp, 0x14
test esi, esi
push 0
je 0x10010d96
lea edx, [esp + 0x24]
push 0
push edx
push 0
push 0
dec esi
push 0
push esi
call fcn.10046a10
mov eax, dword [esp + 0x20]
push eax
push str.File_Save_Error:__t__d__n
push ebx
call ebp
add esp, 0xc
jmp 0x10010db3
mov ecx, dword [edi + 8]
lea edx, [esp + 0x148]
and ecx, 0xff
push ecx
push edx
push str.Converted:__s_t_t__d__d__n
push ebx
call ebp
add esp, 0x14
mov eax, dword [esp + 0x30]
push eax
call fcn.100828e0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
inc edi
cmp edi, eax
mov dword [esp + 0x1c], edi
jbe 0x10010cc6
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10010aa6
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x14], 0
push 0x100fba04
push 0
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100109c3
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x10010e32
push ebp
call fcn.100a12c0
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x10010e43
push eax
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10010e4e
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10010e5d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x354]
test eax, eax
je 0x10010e76
test ebx, ebx
je 0x10010e76
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x338
ret 0xc
push 0
push 0
push 0xfffff691
push 0xd5
push str.C:_accusoftgearSourceLoadBatch.c
call fcn.10046940
jmp 0x10010e28
push 0
push 0
push 0xfffff692
push 0xd7
push str.C:_accusoftgearSourceLoadBatch.c
call fcn.10046940
mov ebx, dword [esp + 0x10]
jmp 0x10010e28
push 0
push 0
push 0xfffff6a9
push 0xd9
push str.C:_accusoftgearSourceLoadBatch.c
call fcn.10046940
mov ebx, dword [esp + 0x10]
jmp 0x10010e28