Function at 0x1003d5a1
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0xf8
mov eax, dword [ebp + 0x70]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
je 0x1003d5bf
cmp word [eax], bx
jne 0x1003d5bf
mov dword [ebp + 0x70], ebx
mov ecx, dword [ebp + 0x74]
mov eax, ecx
and eax, 0x100000
mov edi, ecx
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x7c]
and edi, 0x10000
cmp eax, ebx
mov dword [ebp - 0x18], edi
mov byte [ebp + 0x3f], cl
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
je 0x1003d5f2
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x90]
call fcn.100463df
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x78]
and eax, 0x80000000
xor edx, edx
or eax, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x64], 1
jne 0x1003d627
mov dword [ebp - 0x64], ebx
mov ecx, dword [ebp + 0x74]
mov eax, ecx
and eax, 0x60000
or eax, ebx
je 0x1003d63a
xor edi, edi
mov dword [ebp - 0x18], edi
mov eax, ecx
and eax, 0x200000
or eax, ebx
mov byte [ebp + 0x3c], 1
jne 0x1003d64c
mov byte [ebp + 0x3c], bl
mov eax, ecx
and eax, 0x400000
or eax, ebx
mov byte [ebp + 0x3e], 1
jne 0x1003d65e
mov byte [ebp + 0x3e], bl
mov eax, ecx
and eax, 0x800000
or eax, ebx
mov byte [ebp + 0x3d], 1
jne 0x1003d670
mov byte [ebp + 0x3d], bl
mov eax, dword [ebp - 0x64]
or eax, edx
mov eax, dword [ebp + 0x70]
mov byte [ebp + 0x56], bl
je 0x1003d6c1
cmp eax, ebx
je 0x1003d73b
mov dword [ebp - 0x24], eax
push 0x125
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x80], ebx
call fcn.1001a65a
add esp, 0xc
mov dword [ebp + 0x70], eax
cmp word [eax], bx
jne 0x1003d6e7
mov byte [ebp + 0x56], 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.1004bbf7
mov eax, dword [ebp - 0x24]
pop ecx
pop ecx
mov dword [ebp + 0x70], eax
cmp eax, ebx
je 0x1003d73b
cmp word [eax], bx
mov ecx, eax
je 0x1003d73b
mov dx, word [ecx]
inc ecx
inc ecx
cmp dx, 0x5c
jne 0x1003d6e0
mov word [ecx - 2], 0x2f
mov eax, dword [ebp + 0x70]
cmp word [ecx], bx
jne 0x1003d6cc
jmp 0x1003d736
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.1004bbf7
test eax, eax
pop ecx
pop ecx
jg 0x1003d6ac
mov ebx, 0x80070057
jmp 0x1003e40f
mov dword [ebp + 0x7c], eax
push 0xd
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x7c]
push eax
mov dword [ebp + 0x2c], ebx
call fcn.1001a65a
mov ecx, dword [ebp + 0x7c]
add esp, 0xc
mov dword [ebp + 0x70], eax
cmp word [ecx], bx
je 0x1003d736
push ecx
lea ecx, [ebp - 0x90]
call fcn.1000f82f
mov eax, dword [ebp + 0x70]
cmp word [eax], bx
jne 0x1003d704
mov ecx, dword [ebp - 0x88]
push esi
mov esi, ecx
neg esi
sbb esi, esi
and esi, dword [ebp - 0x90]
cmp ecx, 1
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0x84], esi
jne 0x1003d774
mov eax, dword [esi]
cmp word [eax], 0x3c
jne 0x1003d774
cmp word [eax + 2], 0x3e
jne 0x1003d774
cmp word [eax + 4], bx
mov byte [ebp + 0x7f], cl
je 0x1003d777
mov byte [ebp + 0x7f], bl
cmp edi, ebx
jne 0x1003d7b3
xor edi, edi
cmp ecx, ebx
jle 0x1003d7b3
mov eax, dword [esi + edi*4]
push 6
push eax
push str._udext
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x1003d7ad
inc eax
cmp dword [ebp + 0x14], eax
jne 0x1003d7a0
mov byte [ebp + 0x7f], 1
or byte [ebp + 0x76], 2
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x78], eax
inc edi
cmp edi, dword [ebp + 0x14]
jl 0x1003d781
mov ecx, dword [ebp - 0x64]
xor eax, eax
or ecx, eax
je 0x1003d7d7
cmp dword [ebp + 0x14], ebx
jl 0x1003d7cd
cmp esi, ebx
je 0x1003d7d7
mov ecx, dword [esi]
cmp word [ecx], 0x3c
jne 0x1003d7d7
mov ebx, 0x80070057
jmp 0x1003e40e
mov ecx, dword [ebp - 0x64]
or ecx, eax
mov dword [ebp + 0x58], ebx
je 0x1003d7e8
mov eax, 0x40000000
jmp 0x1003d7ea
xor eax, eax
push ebx
push 0x80
push 3
push ebx
push 7
or eax, 0x80000000
push eax
push dword [ebp + 0x68]
lea ecx, [ebp + 0x58]
call fcn.10005b9d
cmp dword [ebp + 0x58], ebx
jne 0x1003d813
or ebx, 0xffffffff
jmp 0x1003e406
push 0xe0000
lea ecx, [ebp - 0x1c]
call fcn.10046141
mov esi, dword [ebp - 0x1c]
push ebx
lea eax, [ebp + 0x5c]
push eax
mov edi, 0x200
push edi
push esi
push dword [ebp + 0x58]
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0x5c], edi
jb 0x1003e3ea
cmp dword [esi + 0x1b4], 0x46424246
jne 0x1003e3ea
cmp word [esi + 0x1fe], 0xaa55
jne 0x1003e3ea
movzx edi, word [esi + 0x1b2]
inc edi
mov eax, edi
shl eax, 9
cdq
push ebx
push edx
push eax
push dword [ebp + 0x58]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
call fcn.10040d01
add esp, 0x10
cmp dword [ebp - 0x4c], eax
jne 0x1003e3ea
cmp dword [ebp - 0x48], edx
jne 0x1003e3ea
push ebx
lea eax, [ebp + 0x5c]
push eax
push 0x200
push esi
push dword [ebp + 0x58]
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0x5c], 0x200
jb 0x1003e3ea
mov ax, word [esi + 2]
movsx cx, byte [esi + 5]
mov word [ebp - 0x20], ax
movsx ax, byte [esi + 4]
push 8
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x50], ebx
shl eax, 8
add eax, ecx
cmp ax, 0x107
sbb al, al
inc al
setne cl
mov byte [ebp + 0x3b], al
lea ecx, [ecx*4 + 0xe]
movzx dx, cl
mov byte [ebp + 0x57], cl
mov ecx, 0xff
sub ecx, edx
cmp al, bl
setne al
mov dword [ebp - 0x5c], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x4c], ecx
pop ecx
push ebx
push ebx
lea eax, [eax*4 + 0xa]
mov byte [ebp + 0x3a], al
movzx eax, word [esi + 0xa]
cdq
mov dword [ebp - 0x58], eax
add eax, ecx
mov dword [ebp - 8], eax
mov eax, edx
adc eax, ebx
mov dword [ebp - 4], eax
movzx eax, word [esi]
add eax, edi
mov dword [ebp - 0x54], edx
cdq
mov dword [ebp - 0x44], eax
movzx eax, word [esi + 8]
mov dword [ebp], eax
mov eax, dword [ebp + 0x74]
and eax, 0x80000
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp + 0x74]
mov edi, 0x8600
push edi
push dword [ebp + 0x58]
and eax, 0x60000
mov dword [ebp + 0x30], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x50], eax
call fcn.10040d01
add esp, 0x10
cmp eax, edi
mov edi, 0x200
jne 0x1003d9f0
cmp edx, ebx
jne 0x1003d9f0
push ebx
lea eax, [ebp + 0x5c]
push eax
push edi
push esi
push dword [ebp + 0x58]
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003d9f0
cmp dword [ebp + 0x5c], edi
jne 0x1003d9f0
mov al, byte [esi + 0x1f8]
mov cl, al
and al, 0x1f
movzx eax, al
cdq
and cl, 0xe0
cmp dword [esi + 0x1b4], 0x46424246
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], edx
jne 0x1003d9f0
cmp cl, bl
mov dword [ebp + 0x50], 0x10000
jne 0x1003da6f
mov eax, dword [esi + 0x1f0]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x1f4]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x1e8]
mov dword [ebp + 0x24], eax
mov eax, dword [esi + 0x1ec]
jmp 0x1003da6c
xor eax, eax
cmp eax, dword [ebp + 0x34]
jb 0x1003da6f
ja 0x1003da01
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp + 0x30]
jbe 0x1003da6f
cmp dword [ebp + 0x2c], ebx
je 0x1003da6f
push ebx
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.100b4200
push ebx
push edx
push eax
push dword [ebp + 0x58]
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], edx
call fcn.10040d01
add esp, 0x10
cmp dword [ebp + 0x40], eax
jne 0x1003da6f
cmp dword [ebp + 0x44], edx
jne 0x1003da6f
push ebx
lea eax, [ebp + 0x5c]
push eax
push edi
push esi
push dword [ebp + 0x58]
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003da6f
cmp dword [ebp + 0x5c], edi
jne 0x1003da6f
cmp byte [esi], 0xeb
jne 0x1003da6f
cmp word [esi + 0x1fe], 0xaa55
jne 0x1003da6f
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp + 0x30]
push 0
mov dword [ebp + 0x24], eax
pop eax
sbb eax, dword [ebp + 0x34]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp]
mov ecx, dword [ebp + 0x6c]
lea eax, [eax + eax*4]
shl eax, 9
add eax, 0xc64
push eax
call fcn.10046168
mov eax, dword [ebp]
mov ecx, dword [ebp + 0x6c]
mov ecx, dword [ecx]
lea eax, [eax + eax*4]
shl eax, 0xa
lea eax, [eax + ecx + 0x200]
and eax, 0xfffffe00
cmp dword [ebp - 0x40], ebx
mov dword [ebp + 0x48], eax
jl 0x1003dac2
jg 0x1003dab0
cmp dword [ebp - 0x44], 0x44
jbe 0x1003dac2
mov eax, dword [ebp]
shl eax, 0xa
push eax
lea ecx, [ebp - 0x1c]
call fcn.10046168
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp]
push ebx
push edi
push dword [ebp - 0x40]
add ecx, eax
push eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x4c], esi
call fcn.100b4200
push ebx
push edx
push eax
push dword [ebp + 0x58]
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], edx
call fcn.10040d01
add esp, 0x10
cmp dword [ebp + 0x30], eax
jne 0x1003e3fb
cmp dword [ebp + 0x34], edx
jne 0x1003e3fb
cmp dword [ebp - 0x50], ebx
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
mov dword [ebp + 0x1c], eax
je 0x1003db13
cmp dword [ebp - 0x18], ebx
je 0x1003db1f
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
push ebx
push edi
xor eax, eax
push eax
push dword [ebp - 0x4c]
call fcn.100b4200
cmp dword [ebp - 0x50], ebx
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], edx
je 0x1003dbc7
cmp dword [ebp - 0x18], ebx
jne 0x1003dbc7
xor eax, eax
cmp dword [ebp + 0x28], ebx
ja 0x1003db50
cmp dword [ebp + 0x24], ebx
jbe 0x1003db8a
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x28]
push dword [ebp + 0x24]
call fcn.100b4200
push edx
push eax
push dword [ebp - 4]
mov eax, dword [ebp + 0x50]
push dword [ebp - 8]
or eax, 0xff00
push str._udext_
push eax
push str.0x_02X___s__0x_I64X__I64u__u__02u__02u__02u__02u__02u_r_n
push dword [ebp + 0x1c]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x38
cmp dword [ebp + 0x28], ebx
mov ecx, dword [ebp + 0x1c]
lea eax, [ecx + eax*2]
mov dword [ebp + 0x1c], eax
mov word [eax], bx
ja 0x1003dba0
cmp dword [ebp + 0x24], ebx
jbe 0x1003dbb7
or dword [ebp + 0x20], 0xffffffff
push ebx
push edi
push dword [ebp + 0x28]
push dword [ebp + 0x24]
call fcn.100b4200
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], edx
mov eax, dword [ebp + 0x74]
and eax, 0x40000
or eax, ebx
jne 0x1003e3fe
cmp byte [ebp + 0x7f], bl
jne 0x1003dc29
mov eax, dword [ebp - 0x44]
mov dword [ebp + 0x78], eax
jmp 0x1003dc24
push ebx
lea eax, [ebp + 0x5c]
push eax
push edi
push dword [ebp + 0x48]
mov dword [ebp + 0x5c], ebx
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0x5c], edi
jne 0x1003e3fb
push edi
push dword [ebp + 0x48]
push dword [ebp + 0x4c]
call fcn.100144ff
add esp, 0xc
add dword [ebp + 0x4c], 0x1fe
mov al, byte [esi]
cmp al, bl
je 0x1003dc29
movzx eax, al
lea eax, [eax + esi + 2]
cmp eax, dword [ebp + 0x4c]
ja 0x1003dc1e
mov esi, eax
jmp 0x1003dc08
inc dword [ebp + 0x78]
mov eax, dword [ebp + 0x78]
cmp eax, dword [ebp + 0xc]
jl 0x1003dbd4
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
cmp eax, ebx
mov dword [ebp + 0x50], esi
mov dword [ebp - 0x28], eax
je 0x1003dc3b
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x20]
and al, 1
neg al
mov byte [ebp + 0x7b], bl
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], ebx
sbb eax, eax
and eax, 0xfde9
cmp byte [ebp + 0x7f], bl
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x4c], eax
je 0x1003dc66
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], esi
jae 0x1003df6a
mov ecx, dword [ebp - 0x14]
movzx ax, byte [ecx]
movzx esi, byte [ebp + 0x57]
lea edx, [esi + ecx]
mov dword [ebp - 0x20], ecx
mov dword [ebp + 0x28], ecx
inc eax
inc eax
movzx eax, ax
mov edi, eax
sub edi, esi
mov esi, ecx
add ecx, eax
cmp ebx, dword [ebp - 0x54]
mov al, byte [esi + 1]
mov byte [ebp + 0x7f], al
mov eax, dword [esi + 2]
mov dword [ebp - 0x14], ecx
jb 0x1003dcac
ja 0x1003dca8
cmp eax, dword [ebp - 0x58]
jb 0x1003dcac
or byte [ebp + 0x7f], 1
mov al, byte [ebp + 0x3f]
cmp al, bl
je 0x1003dcbc
test byte [ebp + 0x7f], al
je 0x1003df5e
cmp edi, ebx
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x10], ebx
mov word [eax], bx
jle 0x1003dcfd
cmp byte [edx], bl
je 0x1003dcfd
push 0x800
push eax
movzx eax, word [ebp + 0x2c]
push 0xffffffffffffffff
push edx
add edi, edx
mov cl, byte [edi]
push ebx
push eax
mov byte [ebp + 0x1b], cl
mov byte [edi], bl
call dword [0x100e2be4]
mov cl, byte [ebp + 0x1b]
movzx eax, al
mov byte [edi], cl
mov ecx, dword [ebp + 0x48]
mov dword [ebp + 0x10], eax
mov word [ecx + eax*2], bx
cmp byte [ebp + 0x3b], bl
mov edi, dword [esi + 6]
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x44], ebx
je 0x1003dd14
mov eax, dword [esi + 0xa]
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x44], eax
cmp byte [ebp + 0x3e], bl
je 0x1003dd33
mov eax, edi
and eax, 0x1ff
or eax, ebx
jne 0x1003df5e
mov eax, edi
or eax, dword [ebp + 0x44]
je 0x1003df5e
cmp byte [ebp + 0x3c], bl
je 0x1003dd3e
test byte [ebp + 0x7f], 0x7c
jne 0x1003dd75
cmp dword [ebp + 0x14], ebx
je 0x1003dd75
mov dword [ebp - 0x3c], ebx
jle 0x1003df5e
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x3c]
push dword [eax + ecx*4]
push dword [ebp + 0x48]
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x1003dd75
inc dword [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp + 0x14]
jl 0x1003dd4c
jmp 0x1003df5e
test byte [ebp + 0x7f], 0x80
mov eax, dword [ebp + 0x44]
mov dword [ebp + 4], edi
mov dword [ebp + 8], eax
mov edi, 0x200
je 0x1003dd9a
push ebx
push edi
push eax
push dword [ebp + 0x40]
call fcn.100b4200
mov dword [ebp + 4], eax
mov dword [ebp + 8], edx
cmp dword [ebp - 0x18], ebx
jne 0x1003dfae
cmp dword [ebp - 0x50], ebx
je 0x1003de6f
cmp dword [ebp + 0x44], ebx
ja 0x1003ddbe
cmp dword [ebp + 0x40], 0x8000
jb 0x1003df5e
mov eax, dword [ebp + 0x40]
and eax, 0x1ff
or eax, ebx
jne 0x1003df5e
test byte [ebp + 0x7f], 0x7c
jne 0x1003de6f
cmp dword [ebp + 0x10], 4
jle 0x1003ddf8
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x48]
lea eax, [eax + ecx*2 - 0xa]
push eax
push str..iso
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1003de6f
mov eax, dword [esi + 2]
mov ecx, edi
mul ecx
push ebx
push edx
push eax
push dword [ebp + 0x58]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
call fcn.10040d01
add esp, 0x10
cmp dword [ebp - 0x10], eax
jne 0x1003df5e
cmp dword [ebp - 0xc], edx
jne 0x1003df5e
push ebx
lea eax, [ebp + 0x5c]
push eax
mov eax, dword [ebp + 0x48]
push edi
add eax, 0x400
push eax
push dword [ebp + 0x58]
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003df5e
cmp dword [ebp + 0x5c], edi
jne 0x1003df5e
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0xeb
jne 0x1003df5e
cmp word [eax + 0x1fe], 0xaa55
jne 0x1003df5e
movzx eax, byte [ebp + 0x3a]
mov ecx, dword [ebp + 0x28]
mov eax, dword [eax + ecx]
xor ecx, ecx
push ebx
add eax, 0xb6109100
push 0x989680
adc ecx, 2
push ecx
push eax
call fcn.100b4200
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x98], eax
xor eax, eax
mov word [ebp - 0x7c], bx
lea edi, [ebp - 0x7a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
or ecx, eax
mov dword [ebp - 0x94], edx
mov byte [ebp + 0x7b], 1
jne 0x1003df6a
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
inc dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0xffffffff
jne 0x1003def2
mov eax, dword [esi + 2]
cmp dword [ebp - 8], eax
jne 0x1003df17
cmp dword [ebp - 4], ebx
jne 0x1003df17
mov eax, dword [ebp + 0x30]
cmp eax, dword [ebp + 4]
jne 0x1003def2
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x34], eax
je 0x1003df5e
cmp dword [ebp + 0x20], ebx
jle 0x1003df17
mov eax, dword [esi + 2]
cmp dword [ebp - 0x58], eax
jne 0x1003df17
cmp dword [ebp - 0x54], ebx
jne 0x1003df17
mov eax, dword [ebp + 4]
cmp dword [ebp + 0x30], eax
jne 0x1003df17
mov eax, dword [ebp + 0x34]
cmp eax, dword [ebp + 8]
jne 0x1003df17
mov dword [ebp + 0x20], ebx
movzx eax, word [ebp - 0x70]
push eax
movzx eax, word [ebp - 0x72]
push eax
movzx eax, word [ebp - 0x74]
push eax
movzx eax, word [ebp - 0x76]
push eax
movzx eax, word [ebp - 0x7a]
push eax
movzx eax, word [ebp - 0x7c]
push eax
push dword [ebp + 8]
movzx eax, byte [ebp + 0x7f]
push dword [ebp + 4]
push dword [esi + 2]
mov esi, dword [ebp + 0x1c]
push dword [ebp + 0x48]
push eax
push str.0x_02X___s__0x_lX__I64u__u__02u__02u__02u__02u__02u_r_n
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esi + eax*2]
add esp, 0x34
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x50]
jb 0x1003dc72
cmp byte [ebp + 0x3d], bl
je 0x1003e15f
cmp dword [ebp + 0xc], ebx
jle 0x1003e15f
mov edi, dword [ebp + 0x1c]
mov esi, edi
sub esi, dword [ebp - 0x28]
mov dword [ebp + 0x20], ebx
inc esi
inc esi
sar esi, 1
cmp dword [ebp - 0x28], ebx
je 0x1003dfa4
lea eax, [esi + esi]
push eax
push dword [ebp - 0x28]
mov eax, dword [ebp + 0x6c]
push dword [eax]
call fcn.100144b5
add esp, 0xc
neg esi
lea esi, [edi + esi*2]
jmp 0x1003e162
mov eax, dword [esi + 2]
mov ecx, edi
mul ecx
mov dword [ebp + 0x40], eax
mov al, byte [ebp + 0x7f]
and al, 1
neg al
mov dword [ebp + 0x44], edx
sbb eax, eax
and eax, 2
add eax, 0x1fe
mov dword [ebp + 0x78], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
jg 0x1003dfe8
jl 0x1003e3fe
mov ecx, dword [ebp + 4]
cmp ecx, ebx
ja 0x1003dfeb
jmp 0x1003e3fe
mov ecx, dword [ebp + 4]
mov esi, dword [ebp - 0x34]
cmp esi, eax
jl 0x1003dffe
jg 0x1003dff9
cmp dword [ebp - 0x38], ecx
jbe 0x1003dffe
mov dword [ebp - 0x38], ecx
mov esi, eax
sub ecx, dword [ebp - 0x38]
sbb eax, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
js 0x1003e01d
jg 0x1003e3fb
cmp ecx, 0x7ffffde0
jae 0x1003e3fb
mov eax, dword [ebp + 0x78]
cdq
push edx
push eax
push esi
push dword [ebp - 0x38]
call fcn.100b4150
mov esi, eax
shl eax, 9
cdq
add dword [ebp + 0x40], eax
push ebx
adc dword [ebp + 0x44], edx
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push dword [ebp + 0x58]
call fcn.10040d01
add esp, 0x10
cmp dword [ebp + 0x40], eax
jne 0x1003e3fb
cmp dword [ebp + 0x44], edx
jne 0x1003e3fb
imul esi, dword [ebp + 0x78]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
sub eax, esi
mov dword [ebp + 0x78], eax
add eax, ecx
lea esi, [eax + 0x1ff]
mov ecx, 0xfffffe00
add eax, 0x20f
and eax, ecx
add eax, edi
and esi, ecx
mov ecx, dword [ebp + 0x6c]
push eax
call fcn.10045ff1
cmp eax, ebx
mov dword [ebp + 0x4c], eax
je 0x1003e3fb
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
add eax, edi
and eax, 0xfffffe00
mov dword [ebp + 0x50], eax
add eax, 0x200
test byte [ebp + 0x7f], 0x3d
mov dword [ebp + 0x28], eax
mov dword [eax], ebx
je 0x1003e13a
mov edi, dword [ebp + 0x28]
push ebx
lea eax, [ebp + 0x5c]
push eax
push esi
push edi
push dword [ebp + 0x58]
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003e3fb
cmp dword [ebp + 0x5c], esi
jb 0x1003e3fb
mov eax, dword [ebp + 0x6c]
sub edi, dword [eax]
add edi, dword [ebp + 0x78]
mov dword [eax + 8], edi
jmp 0x1003e13e
push ebx
lea eax, [ebp + 0x5c]
push eax
push edi
push dword [ebp + 0x50]
mov dword [ebp + 0x5c], ebx
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0x5c], edi
jne 0x1003e3fb
mov ecx, dword [ebp + 0x78]
mov eax, 0x1fe
sub eax, ecx
push eax
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x50]
add eax, ecx
push eax
push dword [ebp + 0x4c]
call fcn.100144ff
mov eax, dword [ebp + 0x5c]
add dword [ebp + 0x4c], eax
add esp, 0xc
mov dword [ebp + 0x78], ebx
sub esi, 0x1fe
cmp esi, ebx
jg 0x1003e0ee
mov eax, dword [ebp + 0x6c]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x10]
add edx, dword [eax]
push 0x10
add edx, ecx
push ebx
push edx
mov dword [eax + 4], ecx
call fcn.100b40f0
add esp, 0xc
jmp 0x1003e3fe
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], ebx
jle 0x1003e1a2
xor eax, eax
cmp eax, ebx
ja 0x1003e172
cmp dword [ebp - 0x4c], ebx
jbe 0x1003e1a2
cmp dword [ebp - 0x18], ebx
jne 0x1003e1a2
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x34]
push dword [ebp + 0x30]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push str._udext.norm_
push 0x2ff00
push str.0x_02X___s__0x_I64X__I64u__u__02u__02u__02u__02u__02u_r_n
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x38
mov eax, dword [ebp - 0x64]
xor ecx, ecx
or eax, ecx
je 0x1003e3fe
cmp byte [ebp + 0x56], bl
je 0x1003e1be
cmp byte [ebp + 0x7b], bl
jne 0x1003e1c6
jmp 0x1003e3fe
cmp byte [ebp + 0x7b], bl
mov esi, dword [ebp + 0x50]
je 0x1003e1c9
mov esi, dword [ebp - 0x20]
cmp byte [ebp + 0x56], bl
mov edi, dword [ebp + 0x50]
je 0x1003e203
movzx eax, byte [esi]
inc eax
inc eax
mov dword [ebp + 0x7c], edi
sub dword [ebp + 0x7c], eax
mov ecx, dword [ebp + 0x7c]
sub ecx, esi
inc ecx
mov dword [ebp + 0x78], eax
push ecx
add eax, esi
push eax
push esi
call fcn.100144b5
push dword [ebp + 0x78]
push ebx
push dword [ebp + 0x7c]
call fcn.100b40f0
add esp, 0x18
jmp 0x1003e303
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
shrd eax, ecx, 9
mov dword [esi + 2], eax
mov eax, dword [ebp - 0x30]
shr ecx, 9
cmp byte [ebp + 0x3b], bl
mov dword [esi + 6], eax
jne 0x1003e25d
test byte [esi + 1], 0xbc
jne 0x1003e22a
mov al, byte [ebp + 0x3f]
mov byte [esi + 1], al
mov eax, dword [ebp - 0x2c]
cmp eax, 1
jb 0x1003e240
ja 0x1003e239
cmp dword [ebp - 0x30], ebx
jb 0x1003e240
or byte [esi + 1], 0x80
mov eax, dword [ebp - 0x2c]
test byte [esi + 1], 0x80
je 0x1003e263
mov ecx, dword [ebp - 0x30]
add ecx, 0x1ff
adc eax, ebx
shrd ecx, eax, 9
shr eax, 9
mov dword [esi + 6], ecx
jmp 0x1003e263
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0xa], eax
cmp byte [ebp + 0x7b], bl
lea edi, [esi + 0xc]
jne 0x1003e303
xor eax, eax
mov dword [ebp + 0x74], ebx
lea edi, [ebp + 0x78]
stosd dword es:[edi], eax
lea eax, [ebp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
push 0x989680
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.100b4650
movzx ecx, byte [ebp + 0x3a]
mov edi, dword [ebp + 0x48]
push ebx
push ebx
push 0x100
push edi
add eax, 0x49ef6f00
push 0xffffffffffffffff
mov dword [ecx + esi], eax
push dword [ebp - 0x24]
movzx eax, word [ebp + 0x2c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
mov dword [ebp + 0x7c], eax
jle 0x1003e2cb
cmp byte [eax + edi - 1], bl
jne 0x1003e2cb
dec dword [ebp + 0x7c]
movzx eax, word [ebp - 0x5c]
cmp dword [ebp + 0x7c], eax
jle 0x1003e2d7
mov dword [ebp + 0x7c], eax
mov eax, dword [ebp + 0x7c]
mov byte [eax + edi], bl
inc eax
push eax
movzx eax, byte [ebp + 0x57]
add eax, esi
push edi
push eax
call fcn.100144ff
mov al, byte [ebp + 0x7c]
add al, byte [ebp + 0x57]
add esp, 0xc
dec al
mov byte [esi], al
movzx eax, al
lea edi, [eax + esi + 3]
mov byte [edi - 1], bl
sub edi, dword [ebp + 0x4c]
mov eax, esi
sub eax, dword [ebp + 0x4c]
mov ecx, edi
cdq
mov edi, 0x1fe
mov esi, edi
idiv esi
mov dword [ebp + 0x7c], eax
mov eax, ecx
cdq
idiv esi
cmp eax, dword [ebp]
mov dword [ebp - 0x5c], eax
jl 0x1003e331
mov ebx, 0x80070057
jmp 0x1003e3fe
cmp dword [ebp + 0x7c], eax
jg 0x1003e3fe
mov eax, dword [ebp + 0x7c]
mov edx, dword [ebp + 0x4c]
imul eax, eax, 0x1fe
add edx, eax
sub ecx, eax
mov dword [ebp + 0x50], edx
mov dword [ebp + 0x78], ecx
mov esi, 0x200
mov eax, dword [ebp + 0x7c]
cdq
add eax, dword [ebp - 0x44]
push ebx
adc edx, dword [ebp - 0x40]
push esi
push edx
push eax
call fcn.100b4200
push ebx
push edx
push eax
push dword [ebp + 0x58]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
call fcn.10040d01
mov eax, dword [ebp + 0x78]
add esp, 0x10
cmp eax, edi
mov dword [ebp + 0x2c], eax
jle 0x1003e389
mov dword [ebp + 0x2c], edi
push ebx
lea eax, [ebp + 0x5c]
push eax
push esi
push dword [ebp + 0x48]
mov dword [ebp + 0x5c], ebx
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0x2c]
push dword [ebp + 0x50]
push dword [ebp + 0x48]
call fcn.100144ff
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 0x58]
call fcn.10040d01
add esp, 0x1c
push ebx
lea eax, [ebp + 0x5c]
push eax
push esi
push dword [ebp + 0x48]
mov dword [ebp + 0x5c], ebx
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [ebp + 0x7c]
mov eax, dword [ebp + 0x7c]
sub dword [ebp + 0x78], edi
add dword [ebp + 0x50], edi
cmp eax, dword [ebp - 0x5c]
jle 0x1003e355
jmp 0x1003e3fe
mov esi, dword [ebp + 0x6c]
push 0x64
mov ecx, esi
call fcn.10046168
mov eax, dword [esi]
mov word [eax], bx
or ebx, 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1003f96c
lea ecx, [ebp + 0x58]
call fcn.10002d56
pop esi
lea ecx, [ebp - 0x90]
call fcn.1003f96c
pop edi
mov eax, ebx
pop ebx
add ebp, 0x60
leave
ret