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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ec991
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x101d6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], 0
push 8
lea ecx, [ebp - 0x40]
call fcn.10016920
lea ecx, [ebp - 0x40]
call fcn.10031290
mov dword [ebp - 4], 0
push 0xc
lea ecx, [ebp - 0x80]
call fcn.10016920
lea ecx, [ebp - 0x80]
call fcn.100252e0
mov byte [ebp - 4], 1
push 0xc
lea ecx, [ebp - 0x5c]
call fcn.10016920
lea ecx, [ebp - 0x5c]
call fcn.100252e0
mov byte [ebp - 4], 2
push 8
lea ecx, [ebp - 0x48]
call fcn.10016920
lea ecx, [ebp - 0x48]
call fcn.10024f90
mov byte [ebp - 4], 3
push 8
lea ecx, [ebp - 0x50]
call fcn.10016920
push str.datakitarmband00281006_a.tga
lea ecx, [ebp - 0x2f8]
call fcn.10019b30
mov byte [ebp - 4], 4
push str.datakitarmband00281006_h.tga
lea ecx, [ebp - 0x2e0]
call fcn.10019b30
mov byte [ebp - 4], 5
push str.datakitarmband00281006_g.tga
lea ecx, [ebp - 0x2c8]
call fcn.10019b30
mov byte [ebp - 4], 6
push str.datakits00281006_a.tga
lea ecx, [ebp - 0x2b0]
call fcn.10019b30
mov byte [ebp - 4], 7
push str.datakits00281006_h.tga
lea ecx, [ebp - 0x298]
call fcn.10019b30
mov byte [ebp - 4], 8
push str.datakits00281006_g.tga
lea ecx, [ebp - 0x280]
call fcn.10019b30
mov byte [ebp - 4], 9
push str.dataminikits00281006_a.png
lea ecx, [ebp - 0x268]
call fcn.10019b30
mov byte [ebp - 4], 0xa
push str.dataminikits00281006_h.png
lea ecx, [ebp - 0x250]
call fcn.10019b30
mov byte [ebp - 4], 0xb
push str.ucp_popupscolors_vert00281006_a.png
lea ecx, [ebp - 0x238]
call fcn.10019b30
mov byte [ebp - 4], 0xc
push str.ucp_popupscolors_vert00281006_h.png
lea ecx, [ebp - 0x220]
call fcn.10019b30
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x2f8]
push ecx
lea ecx, [ebp - 0x154]
call fcn.100177f0
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x50]
call fcn.10031190
mov byte [ebp - 4], 0xf
push fcn.10019aa0
push 0xa
push 0x18
lea ecx, [ebp - 0x2f8]
push ecx
call fcn.100c58b2
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x38], 0
mov dword [ebp - 0xac], 0
jmp 0x100301d1
mov edx, dword [ebp - 0xac]
add edx, 1
mov dword [ebp - 0xac], edx
mov ecx, dword [ebp + 0xc]
call fcn.10025240
cmp dword [ebp - 0xac], eax
jae 0x100306c5
push 0
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10025220
push eax
lea ecx, [ebp - 0x174]
call fcn.1001b8d0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x174]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x98]
push eax
call fcn.1002fa60
add esp, 0xc
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x174]
call fcn.10018440
lea ecx, [ebp - 0x98]
push ecx
call fcn.10018bf0
add esp, 4
movzx edx, al
test edx, edx
je 0x100306b1
push 0x10127a90
lea ecx, [ebp - 0x98]
call fcn.10018420
push eax
call fcn.100cd739
add esp, 8
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
je 0x100306b1
push 2
push 0
mov eax, dword [ebp - 0xc0]
push eax
call fcn.100cd5b6
add esp, 0xc
mov ecx, dword [ebp - 0xc0]
push ecx
call fcn.100cd108
add esp, 4
mov dword [ebp - 0xbc], eax
push 0
push 0
mov edx, dword [ebp - 0xc0]
push edx
call fcn.100cd5b6
add esp, 0xc
cmp dword [ebp - 0xbc], 0x200000
jbe 0x100302c6
mov dword [ebp - 0xbc], 0x200000
mov eax, dword [ebp - 0xbc]
push eax
call fcn.100c5ce1
add esp, 4
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xc0]
push edx
push 1
mov eax, dword [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0xb4]
push ecx
call fcn.100cd963
add esp, 0x10
mov edx, dword [ebp - 0xc0]
push edx
call fcn.100cd261
add esp, 4
cmp dword [ebp - 0xbc], 4
jb 0x1003066b
cmp dword [ebp - 0xbc], 0x10
jb 0x1003066b
push 0
mov eax, dword [ebp - 0xb4]
push eax
call fcn.10031820
add esp, 8
cmp eax, 0x46474942
jne 0x1003066b
mov ecx, dword [ebp - 0xac]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.10025220
mov dword [ebp - 0x144], eax
push str.update
mov ecx, dword [ebp - 0x144]
call fcn.10031400
mov byte [ebp - 0xa5], al
push 8
mov edx, dword [ebp - 0xb4]
push edx
call fcn.10031820
add esp, 8
bswap eax
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0xb4]
add eax, 0x10
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], 0
jmp 0x100303b9
mov ecx, dword [ebp - 0xd8]
add ecx, 1
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0xd8]
cmp edx, dword [ebp - 0x148]
jae 0x100305fa
mov eax, dword [ebp - 0xdc]
add eax, 8
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x1a4]
call fcn.10019b30
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0xa4]
or edx, 1
mov dword [ebp - 0xa4], edx
lea eax, [ebp - 0x1a4]
push eax
lea ecx, [ebp - 0x48]
call fcn.10031200
movzx ecx, al
test ecx, ecx
jne 0x1003045f
mov edx, dword [ebp - 0x9c]
push edx
lea ecx, [ebp - 0x18c]
call fcn.10019b30
mov dword [ebp - 4], 0x14
mov eax, dword [ebp - 0xa4]
or eax, 2
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0x18c]
push ecx
lea ecx, [ebp - 0x50]
call fcn.10031200
movzx edx, al
test edx, edx
jne 0x1003045f
mov dword [ebp - 0xe4], 1
jmp 0x10030469
mov dword [ebp - 0xe4], 0
mov al, byte [ebp - 0xe4]
mov byte [ebp - 0xad], al
mov dword [ebp - 4], 0x13
mov ecx, dword [ebp - 0xa4]
and ecx, 2
je 0x10030499
and dword [ebp - 0xa4], 0xfffffffd
lea ecx, [ebp - 0x18c]
call fcn.10019aa0
mov dword [ebp - 4], 0x12
mov edx, dword [ebp - 0xa4]
and edx, 1
je 0x100304bd
and dword [ebp - 0xa4], 0xfffffffe
lea ecx, [ebp - 0x1a4]
call fcn.10019aa0
movzx eax, byte [ebp - 0xad]
test eax, eax
je 0x10030594
mov ecx, dword [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x1bc]
call fcn.10019b30
mov byte [ebp - 4], 0x15
lea edx, [ebp - 0x1bc]
push edx
call fcn.1002ff60
add esp, 4
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x1bc]
call fcn.10019aa0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x40]
call fcn.10031260
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x118], 0xffffffff
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x120]
call fcn.10030d40
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
movzx edx, byte [ebp - 0xa5]
test edx, edx
je 0x1003058b
mov eax, dword [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x1d4]
call fcn.10019b30
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x1d4]
push ecx
lea edx, [ebp - 0x15c]
push edx
lea ecx, [ebp - 0x48]
call fcn.100318f0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x1d4]
call fcn.10019aa0
mov eax, dword [ebp - 0x18]
add eax, 8
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0xc8]
add edx, 1
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0xc8]
mov cl, byte [eax]
mov byte [ebp - 0xa6], cl
add dword [ebp - 0xc8], 1
cmp byte [ebp - 0xa6], 0
jne 0x100305af
mov edx, dword [ebp - 0xc8]
sub edx, dword [ebp - 0x124]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0xdc]
lea edx, [ecx + eax + 9]
mov dword [ebp - 0xdc], edx
jmp 0x100303aa
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xac]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.10025220
push eax
lea ecx, [ebp - 0x5c]
call fcn.10030da0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x80]
call fcn.10030dd0
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10025220
mov ecx, eax
call fcn.100195d0
add eax, 1
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0xe8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xe8]
mov eax, dword [ebp - 0x18]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
push ecx
call fcn.100c56b0
add esp, 4
cmp dword [ebp - 0xec], 0
jne 0x1003069b
mov dword [ebp - 0x138], 0
jmp 0x100306b1
mov dword [ebp - 0xb4], 0x8123
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0x138], edx
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x98]
call fcn.10018440
jmp 0x100301c2
lea eax, [ebp - 0x40]
mov dword [ebp - 0xf0], eax
push 4
lea ecx, [ebp - 0x34]
call fcn.10016920
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0xf0]
call fcn.100312b0
lea edx, [ebp - 0x19]
push edx
mov ecx, dword [ebp - 0xf0]
call fcn.10025010
jmp 0x10030700
lea ecx, [ebp - 0x34]
call fcn.10031100
movzx eax, byte [ebp - 0x19]
push eax
lea ecx, [ebp - 0x34]
call fcn.10024ea0
movzx ecx, al
test ecx, ecx
jne 0x10030836
lea ecx, [ebp - 0x34]
call fcn.10031120
mov dword [ebp - 0xf4], eax
mov edx, dword [ebp - 0xf4]
push edx
call fcn.10031a40
add esp, 4
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0xf4]
push eax
call fcn.10031a60
add esp, 4
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
call fcn.10031160
cmp eax, 1
jbe 0x10030831
mov dword [ebp - 0xb8], 0
jmp 0x1003077f
mov ecx, dword [ebp - 0xb8]
add ecx, 1
mov dword [ebp - 0xb8], ecx
mov ecx, dword [ebp - 0xc4]
call fcn.10031160
cmp dword [ebp - 0xb8], eax
jae 0x10030831
mov edx, dword [ebp - 0xb8]
push edx
mov ecx, dword [ebp - 0xc4]
call fcn.10031140
add eax, 4
push eax
lea ecx, [ebp - 0x5c]
call fcn.10030da0
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0xc4]
call fcn.10031140
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0x20]
and ecx, 0xffffff
shl ecx, 8
mov edx, dword [ebp - 0xf8]
mov eax, dword [edx]
and eax, 0xff
or eax, ecx
mov ecx, dword [ebp - 0xf8]
mov dword [ecx], eax
mov edx, dword [ebp - 0xb8]
push edx
mov ecx, dword [ebp - 0xc4]
call fcn.10031140
add eax, 4
mov ecx, eax
call fcn.100195d0
add eax, 1
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0xfc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x18], ecx
jmp 0x10030770
jmp 0x100306f8
push 0
push 0x10127aa8
lea ecx, [ebp - 0x1ec]
call fcn.100265e0
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x1ec]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.1002fa60
add esp, 0xc
mov dword [ebp - 0x13c], eax
push 0x10127aa0
mov ecx, dword [ebp - 0x13c]
call fcn.10018420
push eax
call fcn.100cd739
add esp, 8
mov dword [ebp - 0xa0], eax
lea ecx, [ebp - 0x204]
call fcn.10018440
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1ec]
call fcn.10018440
cmp dword [ebp - 0xa0], 0
jne 0x100308ff
mov byte [ebp - 0xa7], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
call fcn.10030e20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.10030e20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.100313e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.10025200
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10030e00
mov al, byte [ebp - 0xa7]
jmp 0x10030c79
mov dword [ebp - 0x74], 0x58494446
mov edx, dword [ebp - 0xa0]
push edx
push 1
push 4
lea eax, [ebp - 0x74]
push eax
call fcn.100cdccc
add esp, 0x10
mov ecx, dword [ebp - 0xa0]
push ecx
push 1
push 4
lea edx, [ebp - 0x18]
push edx
call fcn.100cdccc
add esp, 0x10
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0xa0]
push eax
push 1
push 4
lea ecx, [ebp - 0x60]
push ecx
call fcn.100cdccc
add esp, 0x10
mov edx, dword [ebp - 0xa0]
push edx
push 1
push 4
lea eax, [ebp - 0x24]
push eax
call fcn.100cdccc
add esp, 0x10
mov ecx, dword [ebp - 0xa0]
push ecx
push 1
push 4
lea edx, [ebp - 0x2c]
push edx
call fcn.100cdccc
add esp, 0x10
mov dword [ebp - 0x28], 0x274260
cmp dword [ebp + 0x10], 0xe
jne 0x10030996
mov dword [ebp - 0x28], 0x274260
jmp 0x100309b2
cmp dword [ebp + 0x10], 0xd
jne 0x100309a5
mov dword [ebp - 0x28], 0x2699b7
jmp 0x100309b2
cmp dword [ebp + 0x10], 0xc
jne 0x100309b2
mov dword [ebp - 0x28], 0x22fad2
mov eax, dword [ebp - 0xa0]
push eax
push 1
push 4
lea ecx, [ebp - 0x28]
push ecx
call fcn.100cdccc
add esp, 0x10
mov edx, dword [ebp - 0x24]
lea eax, [edx*4 + 0x20]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0xa0]
push ecx
push 1
push 4
lea edx, [ebp - 0x6c]
push edx
call fcn.100cdccc
add esp, 0x10
mov eax, dword [ebp - 0x2c]
shl eax, 3
mov ecx, dword [ebp - 0x24]
lea edx, [eax + ecx*4 + 0x20]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0xa0]
push eax
push 1
push 4
lea ecx, [ebp - 0x68]
push ecx
call fcn.100cdccc
add esp, 0x10
lea edx, [ebp - 0x80]
mov dword [ebp - 0x100], edx
mov ecx, dword [ebp - 0x100]
call fcn.10017840
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0x100]
call fcn.10017850
mov dword [ebp - 0x11c], eax
jmp 0x10030a50
mov eax, dword [ebp - 0xd0]
add eax, 4
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
cmp ecx, dword [ebp - 0x11c]
je 0x10030a82
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0xa0]
push ecx
push 1
push 4
lea edx, [ebp - 0x70]
push edx
call fcn.100cdccc
add esp, 0x10
jmp 0x10030a41
lea eax, [ebp - 0x40]
mov dword [ebp - 0x104], eax
push 4
lea ecx, [ebp - 0x30]
call fcn.10016920
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x104]
call fcn.100312b0
lea edx, [ebp - 0x11]
push edx
mov ecx, dword [ebp - 0x104]
call fcn.10025010
jmp 0x10030abd
lea ecx, [ebp - 0x30]
call fcn.10031100
movzx eax, byte [ebp - 0x11]
push eax
lea ecx, [ebp - 0x30]
call fcn.10024ea0
movzx ecx, al
test ecx, ecx
jne 0x10030b82
lea ecx, [ebp - 0x30]
call fcn.10031120
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
push edx
call fcn.10031a40
add esp, 4
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x108]
push eax
call fcn.10031a60
add esp, 4
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0xd4], 0
jmp 0x10030b28
mov ecx, dword [ebp - 0xd4]
add ecx, 1
mov dword [ebp - 0xd4], ecx
mov ecx, dword [ebp - 0x10c]
call fcn.10031160
cmp dword [ebp - 0xd4], eax
jae 0x10030b7d
mov edx, dword [ebp - 0xa0]
push edx
push 1
push 4
mov eax, dword [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0x10c]
call fcn.10031140
push eax
call fcn.100cdccc
add esp, 0x10
mov ecx, dword [ebp - 0xa0]
push ecx
push 1
push 4
mov edx, dword [ebp - 0x140]
push edx
call fcn.100cdccc
add esp, 0x10
jmp 0x10030b19
jmp 0x10030ab5
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
call fcn.10017840
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0x110]
call fcn.10017850
mov dword [ebp - 0x128], eax
jmp 0x10030bbe
mov ecx, dword [ebp - 0xcc]
add ecx, 0x18
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0xcc]
cmp edx, dword [ebp - 0x128]
je 0x10030c1e
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
call fcn.100195d0
add eax, 1
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0xe0]
call fcn.100199d0
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0xa0]
push ecx
push 1
mov edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x130]
push eax
call fcn.100cdccc
add esp, 0x10
jmp 0x10030baf
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.100cd261
add esp, 4
mov byte [ebp - 0xa8], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
call fcn.10030e20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.10030e20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.100313e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.10025200
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10030e00
mov al, byte [ebp - 0xa8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c563c
mov esp, ebp
pop ebp
ret