Function at 0x2475a0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x2be93b
mov eax, dword fs:[0]
push eax
mov eax, 0x10268
call fcn.002a2790
mov eax, dword [0x2da130]
xor eax, esp
mov dword [esp + 0x10260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x2da130]
xor eax, esp
push eax
lea eax, [esp + 0x1027c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1028c]
mov ebp, dword [esp + 0x10290]
mov dword [esp + 0x20], eax
mov eax, 1
mov ebx, 0x80
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], 0x20000
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x40000
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], 0x80000
mov dword [esp + 0x38], 4
mov dword [esp + 0x3c], 0x1000000
mov dword [esp + 0x40], 8
mov dword [esp + 0x44], 0x2000000
mov dword [esp + 0x48], 0x10
mov dword [esp + 0x4c], 0x4000000
mov dword [esp + 0x50], 0x20
mov dword [esp + 0x54], 0x8000000
mov dword [esp + 0x58], 0x40
mov dword [esp + 0x5c], 0x10000000
mov dword [esp + 0x60], ebx
test ebp, ebp
je 0x247c29
mov byte [esp + 0x1f], bl
cmp ebp, 0x10000
ja 0x247690
mov byte [esp + 0x1f], 2
push 0x8000
lea edx, [esp + 0x8278]
push 0
push edx
call fcn.002a4930
add ebp, 0xffffe080
mov ecx, ebx
mov esi, 0x2db878
lea edi, [esp + 0x8280]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp + 1]
mov ecx, 0x3f
add esp, 0xc
test cl, al
cdq
idiv ecx
mov byte [esp + 0x8472], 0x55
mov byte [esp + 0x8473], 0xaa
mov byte [esp + 0x8432], 0
mov byte [esp + 0x8433], 0
mov byte [esp + 0x8434], 1
mov byte [esp + 0x8435], 1
mov byte [esp + 0x8436], 0xc
test edx, edx
je 0x247708
mov ecx, edx
mov ebx, eax
and ebx, 0x8000007f
jns 0x247717
dec ebx
or ebx, 0xffffff80
inc ebx
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
mov byte [esp + 0x8439], al
sar eax, 2
push 0x8000
and al, 0xc0
and cl, 0x7f
lea edx, [esp + 0x278]
or al, cl
mov byte [esp + 0x843b], bl
push 0
mov ebx, 0x1f80
push edx
mov byte [esp + 0x8444], al
mov dword [esp + 0x8446], ebx
mov dword [esp + 0x844a], ebp
call fcn.002a4930
mov dl, byte [0x2dba8d]
mov ecx, 0x180
mov esi, 0x2dba78
lea edi, [esp + 0x280]
rep movsd dword es:[edi], dword [esi]
mov cl, byte [0x2dba8a]
add esp, 0xc
mov eax, 0x200
mov byte [esp + 0x286], cl
movzx cx, byte [esp + 0x1f]
push 0x210
mov byte [esp + 0x28d], dl
mov word [esp + 0x283], ax
lea edx, [esp + 0x68]
mov eax, 0x3f
push 0
push edx
mov word [esp + 0x298], ax
mov word [esp + 0x29a], cx
mov dword [esp + 0x29c], ebx
mov byte [esp + 0x2c0], 0
call fcn.002a4930
mov ebx, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esp + 0x64]
push eax
push 0
mov ecx, ebx
call fcn.0025c39f
lea ecx, [esp + 0x64]
push ecx
mov ecx, ebx
call fcn.0024bc25
cmp ebp, 0x4000000
jbe 0x24780e
mov ecx, 0x40
jmp 0x247828
xor ecx, ecx
cmp ebp, dword [esp + ecx*4 + 0x24]
jb 0x247824
add ecx, 2
cmp ecx, 0xe
jb 0x247810
mov ecx, dword [esp + 0x20]
jmp 0x247828
mov ecx, dword [esp + ecx*4 + 0x28]
test eax, eax
je 0x247832
cmp ecx, eax
jae 0x247832
mov ecx, eax
mov edx, dword [esp + 0x10290]
add edx, 0xffbfffff
cmp edx, 0x3bffffe
ja 0x247851
cmp ecx, 0x20
jae 0x247851
mov ecx, 0x20
movzx esi, cl
mov eax, 8
mov dword [esp + 0x294], ebp
add ebp, 0xfffffff0
mov word [esp + 0x2a6], ax
xor edx, edx
lea eax, [esi + ebp - 1]
div esi
mov byte [esp + 0x281], cl
mov dword [esp + 0x2a0], 2
mov ecx, eax
add ecx, 0x81
shr ecx, 7
xor edi, edi
lea edx, [ecx + ecx]
mov eax, ebp
sub eax, edx
xor edx, edx
div esi
add eax, 0x81
shr eax, 7
cmp ecx, eax
jbe 0x2478b1
inc edi
mov ecx, eax
cmp edi, 0xa
jb 0x247892
mov eax, dword [esp + 0x1029c]
lea esi, [ecx + 7]
and esi, 0xfffffff8
push esi
push eax
mov ecx, ebx
mov dword [esp + 0x2a0], esi
mov byte [esp + 0x2bd], 0
mov byte [esp + 0x2d1], 0x33
mov byte [esp + 0x2d2], 0x32
call fcn.00247c60
push 0
movzx ebp, ax
call fcn.002a1c7c
add esp, 4
push eax
call fcn.002a1fac
mov edi, dword [esp + 0x24]
add esp, 4
mov ebx, 4
call fcn.002a1fbe
mov ecx, eax
imul ecx, ecx, 0xff
mov eax, 0x80010003
imul ecx
add edx, ecx
sar edx, 0xe
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
shl edi, 8
or edi, edx
sub ebx, 1
jne 0x247905
movzx cx, byte [esp + 0x281]
lea eax, [esi + esi]
sub ebp, eax
sub bp, cx
mov edx, 0x1f80
sub bp, dx
cmp dword [esp + 0x10290], 0x400000
mov dword [esp + 0x2b7], edi
mov word [esp + 0x282], bp
jae 0x247979
lea eax, [esi + esi]
and eax, 0x1f
mov ecx, 0x40
sub ecx, eax
mov word [esp + 0x282], cx
mov edi, dword [esp + 0x18]
mov eax, 0x20202020
mov dword [esp + 0x2bb], eax
mov dword [esp + 0x2bf], eax
mov word [esp + 0x2c3], ax
mov byte [esp + 0x2c5], al
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2479a4
sub eax, edx
cmp eax, 0xb
jbe 0x2479b9
mov eax, 0xb
jmp 0x2479c9
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2479c0
sub eax, edx
push eax
lea edx, [esp + 0x2bf]
push edi
push edx
call fcn.002a27c0
add esp, 0xc
mov dword [esp + 0x65c], 0xffffffff
call fcn.0028cc1d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x247a00
push 0x80004005
call fcn.002418a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x10284], 0
mov ecx, dword [esp + 0x290]
push ecx
push 0
lea edx, [esp + 0x20]
push str.offset__d__Hidden__d
push edx
call fcn.002414a0
mov eax, dword [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x10
push eax
call ebp
mov ecx, dword [esp + 0x10298]
movzx eax, byte [esp + 0x281]
mov ebx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x294]
lea edx, [esp + 0x278]
push edx
push 1
push edi
mov edi, dword [esp + 0x102a4]
push edi
push eax
push esi
push 0x20
push ecx
mov ecx, ebx
call fcn.0024bd3d
mov esi, eax
push esi
lea edx, [esp + 0x1c]
push str.Clear_FAT_result__d
push edx
call fcn.002414a0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call ebp
test esi, esi
je 0x247ab5
mov dword [esp + 0x10284], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x247c0e
cmp byte [esp + 0x10298], 0
movzx edx, word [esp + 0x2a6]
mov eax, dword [esp + 0x290]
push 1
push edi
lea ecx, [esp + 0x27c]
push ecx
push edx
mov ecx, ebx
push eax
je 0x247ae4
call fcn.0025c1c3
jmp 0x247ae9
call fcn.0025bfd5
mov ecx, dword [esp + 0x290]
mov esi, eax
push esi
push ecx
lea edx, [esp + 0x20]
push str.Write_Sectors__d_result__d
push edx
call fcn.002414a0
mov eax, dword [esp + 0x28]
add esp, 0x10
push eax
call ebp
test esi, esi
je 0x247b28
mov dword [esp + 0x10284], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x247c0e
movzx eax, word [esp + 0x2a6]
mov edx, dword [esp + 0x290]
push 1
push edi
lea ecx, [esp + 0x27c]
push ecx
push eax
add eax, edx
cmp byte [esp + 0x102a8], 0
mov dword [esp + 0x66c], 0xffffffff
mov ecx, ebx
push eax
je 0x247b64
call fcn.0025c1c3
jmp 0x247b69
call fcn.0025bfd5
mov esi, eax
movzx eax, word [esp + 0x2a6]
add eax, dword [esp + 0x290]
push esi
push eax
lea ecx, [esp + 0x20]
push str.Write_Sectors__d_result__d
push ecx
call fcn.002414a0
mov edx, dword [esp + 0x28]
add esp, 0x10
push edx
call ebp
test esi, esi
je 0x247bad
mov dword [esp + 0x10284], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x247c0e
cmp byte [esp + 0x10298], 0
push 1
push edi
je 0x247bcf
lea ecx, [esp + 0x827c]
push ecx
push 0x3f
push 0
mov ecx, ebx
call fcn.0025c1c3
jmp 0x247be2
lea edx, [esp + 0x827c]
push edx
push 0x3f
push 0
mov ecx, ebx
call fcn.0025bfd5
mov esi, eax
push esi
push 0
lea eax, [esp + 0x20]
push str.Write_Sectors__d_result__d
push eax
call fcn.002414a0
mov edi, dword [esp + 0x28]
add esp, 0x10
push edi
call ebp
mov dword [esp + 0x10284], 0xffffffff
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x247c27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1027c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10260]
xor ecx, esp
call fcn.002a105e
add esp, 0x10274
ret 0x14