Function at 0x41d420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
push 0x12
push dword [ebp + 8]
push eax
mov esi, dword [ebp + 0xc]
push esi
call fcn.00424340
add esp, 0x10
mov edi, eax
test edi, edi
je 0x41d4b1
mov edx, dword [ebp + 0x10]
movzx eax, dl
test al, 1
je 0x41d4a0
shr edx, 0x18
movzx edx, dl
test edx, 0x80
je 0x41d490
lea edx, [ebp + 0x17]
and edx, 0xfffffffc
lea eax, [edx + 4]
test byte [eax - 4], 0x10
je 0x41d490
add edx, 7
and edx, 0xfffffffc
mov eax, dword [edx]
add edx, 7
and edx, 0xfffffffc
cmp byte [eax], 0x38
mov ebx, dword [edx]
jne 0x41d490
cmp byte [eax + 2], 0x4e
je 0x41d961
movzx eax, di
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push str.unknown
push esi
push 2
push edi
call fcn.00417f60
add esp, 0x10
mov edi, dword [ebp - 0x10]
xor eax, eax
mov dword [edi + 0x84], eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xf4], eax
mov eax, dword [ebp - 0x10]
movzx edx, byte [ebp + 0x13]
test edx, 0x80
mov ecx, dword [eax + 0xb8]
mov ebx, dword [eax + 0xbc]
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb4], ebx
je 0x41d555
lea ecx, [ebp + 0x17]
and ecx, 0xfffffffc
lea eax, [ecx + 4]
mov edx, dword [eax - 4]
test dl, 0x20
je 0x41d507
mov eax, dword [ebp - 0x10]
or byte [eax + 0x173], 0x40
test dl, 0x10
je 0x41d555
add ecx, 7
and ecx, 0xfffffffc
mov ebx, dword [ecx]
add ecx, 7
and ecx, 0xfffffffc
movsx eax, byte [ebx]
cmp eax, 0x38
mov edi, dword [ecx]
je 0x41e1d9
cmp eax, 0xb
je 0x41dfd6
cmp eax, 0x38
je 0x41da3a
cmp eax, 1
je 0x41d555
push 0x278
push str.for_endfile.c
push 2
push 8
call fcn.00417f60
add esp, 0x10
mov eax, dword [ebp - 0x10]
test byte [eax + 0x169], 0x20
jne 0x41d5d4
mov edx, dword [eax + 0x18]
test edx, edx
je 0x41e208
test byte [edx + 0x44], 2
je 0x41d5aa
mov eax, 0x25e
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x41d598
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x25e
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, 0x25e
push edx
movzx ecx, byte [eax + 0x16c]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push eax
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp dword [eax + 0x138], 1
jne 0x41d650
mov edx, dword [eax + 0x18]
test edx, edx
je 0x41e227
test byte [edx + 0x44], 2
je 0x41d626
mov eax, 0x24b
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x41d614
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x24b
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, 0x24b
push edx
movzx ecx, byte [eax + 0x16c]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push eax
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
test byte [eax + 0x16c], 0x20
je 0x41d66c
movzx ebx, byte [eax + 0x168]
and ebx, 0x10
shr ebx, 3
dec ebx
jmp 0x41d8de
cmp byte [eax + 0x154], 5
je 0x41e2c7
mov ebx, dword [eax + 0x90]
push 1
mov ecx, dword [eax + 0xe4]
lea edx, [ebp - 0x20]
push edx
xor eax, eax
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x41e296
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x10]
mov edx, 2
xor ecx, ecx
mov dword [esp + 4], ecx
mov eax, dword [edi + 0xe4]
mov dword [esp + 8], ecx
call fcn.0041e2f0
mov dword [ebp - 0x40], esi
mov esi, eax
mov edi, dword [ebp - 0x10]
add esi, 0xffffffff
mov ecx, edx
adc ecx, 0xffffffff
cmp dword [edi + 0x138], 7
je 0x41d6e8
mov esi, eax
mov eax, ebx
je 0x41d6ee
mov ecx, edx
cdq
mov eax, dword [ebp - 0x14]
sub eax, ebx
mov dword [ebp - 0x4c], esi
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
sbb ebx, edx
sub eax, dword [ebp - 0x4c]
mov edx, ebx
mov esi, dword [ebp - 0x40]
sbb edx, ecx
jl 0x41d71e
movzx ebx, byte [edi + 0x168]
and ebx, 0x10
shr ebx, 3
dec ebx
jmp 0x41d8c3
mov edi, dword [0x4cc83c]
mov dword [ebp - 0x3c], edi
mov eax, dword [0x4cc840]
mov dword [ebp - 0x38], eax
mov dl, byte [0x4cc844]
mov byte [ebp - 0x34], dl
mov edi, dword [ebp - 0x10]
xor eax, eax
mov byte [ebp - 0x2b], al
mov edx, 0x1a
mov byte [ebp - 0x29], al
mov eax, 0xa
mov byte [ebp - 0x31], al
mov byte [ebp - 0x1b], al
movzx eax, byte [edi + 0x16a]
test eax, 0x80
mov byte [ebp - 0x2c], 1
mov byte [ebp - 0x2a], 0x1a
mov byte [ebp - 0x43], 0xa
mov byte [ebp - 0x42], dl
mov byte [ebp - 0x41], 0xd
mov byte [ebp - 0x33], dl
mov byte [ebp - 0x32], 0xd
mov byte [ebp - 0x1c], 0x1a
mov byte [ebp - 0x1a], 0x1a
mov byte [ebp - 0x19], 0xd
je 0x41d7a1
cmp byte [edi + 0x154], 4
je 0x41e258
cmp byte [edi + 0x154], 3
je 0x41e246
test al, 0x40
je 0x41d8c1
movsx eax, byte [edi + 0x154]
cmp eax, 5
je 0x41d7c8
cmp eax, 7
je 0x41d7c8
cmp eax, 8
je 0x41d7c8
cmp eax, 6
jne 0x41d8c1
cmp byte [edi + 0x156], 1
je 0x41e26a
cmp eax, 7
je 0x41d806
cmp eax, 6
jne 0x41d7ee
mov dword [ebp - 0x30], 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x28], eax
jmp 0x41d813
cmp eax, 8
jne 0x41d8c1
mov dword [ebp - 0x30], 3
lea eax, [ebp - 0x33]
mov dword [ebp - 0x28], eax
jmp 0x41d813
mov dword [ebp - 0x30], 2
lea eax, [ebp - 0x1a]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x41d8c1
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x30]
sbb ecx, ebx
sub edx, eax
mov eax, 0
sbb eax, ecx
jl 0x41d83b
or edx, eax
jne 0x41d8c1
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov dword [esp + 4], ecx
mov eax, dword [edi + 0xe4]
mov dword [esp + 8], ebx
call fcn.0041e2f0
push 0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x30]
lea edx, [ebp - 0x4c]
push edx
push dword [ecx + 0xe4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41d87e
mov dword [ebp - 0x40], 0
xor eax, eax
jmp 0x41d881
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x30]
jne 0x41d8ba
push dword [ebp - 0x30]
push dword [ebp - 0x28]
lea eax, [ebp - 0x4c]
push eax
call fcn.004aace0
add esp, 0xc
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x41d8c1
test edi, edi
je 0x41d8b3
test byte [edi + 0x168], 0x10
je 0x41d8b3
mov ebx, 1
jmp 0x41d8c3
mov ebx, 0xffffffff
jmp 0x41d8c3
mov edi, dword [ebp - 0x10]
xor ebx, ebx
jmp 0x41d8c3
xor ebx, ebx
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [edi + 0xe4]
call fcn.0041e2f0
push esi
call fcn.00423830
add esp, 4
test eax, eax
je 0x41d952
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x41e27c
test byte [edx + 0x44], 2
je 0x41d92d
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x41d920
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [ecx + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.00423d20
add esp, 8
test eax, eax
jne 0x41d490
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov dword [ecx + 0x84], edx
mov esi, dword [ebp - 0x50]
movzx ecx, byte [ebp + 0x10]
and ecx, 1
mov dword [esi + 0xf4], edx
mov esi, dword [ebp - 0x50]
movzx eax, byte [esi + 0x16c]
and eax, 0xfffffffe
or eax, ecx
mov byte [esi + 0x16c], al
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebx]
mov dword [ecx + 0xf4], eax
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebx + 4]
mov dword [eax + 0x84], ebx
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x41da20
test byte [eax + 0x44], 2
je 0x41d9fb
mov dword [eax + 0x38], edi
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x3c], edi
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x41d9ec
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x64], edx
mov eax, edi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edi
movzx eax, byte [ecx + 0x16c]
push edi
and eax, 7
push eax
push 0xffffffffffffffff
push ecx
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push ecx
push edi
push edi
push 0
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 2], 6
je 0x41ded6
cmp byte [ebx + 2], 0x52
je 0x41de06
cmp byte [ebx + 2], 0x3b
je 0x41dd0e
cmp byte [ebx + 2], 0x3c
je 0x41dc08
cmp byte [ebx + 2], 0x51
je 0x41db38
cmp byte [ebx + 2], 0x53
jne 0x41d53f
push 3
lea eax, [ebp - 0x50]
push eax
push 0x53
push dword [edi]
push dword [edi + 4]
call fcn.0040bd60
add esp, 0x14
mov edx, dword [ebp - 0x10]
test eax, eax
jne 0x41dabe
movzx eax, byte [edx + 0x163]
mov byte [edx + 0x164], al
mov edi, dword [ebp - 0x10]
or byte [edi + 0x173], 0x20
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x50]
mov byte [ecx + 0x163], dl
movsx eax, byte [ebx + 4]
jmp 0x41d53a
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x41db1e
test byte [ecx + 0x44], 2
je 0x41daf9
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x41daec
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
movzx ecx, byte [edx + 0x16c]
push eax
and ecx, 7
push ecx
push 0xffffffffffffffff
push edx
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edx
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 3
lea eax, [ebp - 0x50]
push eax
push 0x51
push dword [edi]
push dword [edi + 4]
call fcn.0040bd60
add esp, 0x14
mov edx, dword [ebp - 0x10]
test eax, eax
jne 0x41db8e
add ebx, 4
add edi, 8
movzx eax, byte [edx + 0x15f]
mov byte [edx + 0x160], al
mov ecx, dword [ebp - 0x10]
or byte [ecx + 0x173], 0x10
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x50]
mov byte [eax + 0x15f], dl
movsx eax, byte [ebx]
cmp eax, 0x38
je 0x41da6c
jmp 0x41d53a
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x41dbee
test byte [ecx + 0x44], 2
je 0x41dbc9
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x41dbbc
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
movzx ecx, byte [edx + 0x16c]
push eax
and ecx, 7
push ecx
push 0xffffffffffffffff
push edx
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edx
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 3
lea eax, [ebp - 0x50]
push eax
push 0x3c
push dword [edi]
push dword [edi + 4]
call fcn.0040bd60
add esp, 0x14
mov edx, dword [ebp - 0x10]
test eax, eax
jne 0x41dc94
movzx ecx, byte [edx + 0x16e]
mov eax, ecx
shr ecx, 1
and eax, 0xfffffffb
and ecx, 1
shl ecx, 2
or eax, ecx
mov byte [edx + 0x16e], al
mov edx, dword [ebp - 0x10]
or byte [edx + 0x173], 8
cmp dword [ebp - 0x50], 2
jne 0x41dc73
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ebp + 0x12]
shr edx, 2
and edx, 1
movzx eax, byte [ecx + 0x16e]
add edx, edx
and eax, 0xfffffffd
or eax, edx
mov byte [ecx + 0x16e], al
jmp 0x41dc7d
mov eax, dword [ebp - 0x10]
and byte [eax + 0x16e], 0xfd
add ebx, 4
add edi, 8
movsx eax, byte [ebx]
cmp eax, 0x38
je 0x41da62
jmp 0x41d53a
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x41dcf4
test byte [ecx + 0x44], 2
je 0x41dccf
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x41dcc2
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
movzx ecx, byte [edx + 0x16c]
push eax
and ecx, 7
push ecx
push 0xffffffffffffffff
push edx
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edx
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 3
lea eax, [ebp - 0x50]
push eax
push 0x3b
push dword [edi]
push dword [edi + 4]
call fcn.0040bd60
add esp, 0x14
mov edx, dword [ebp - 0x10]
test eax, eax
jne 0x41dd8c
movzx eax, byte [edx + 0x159]
mov byte [edx + 0x15a], al
mov edx, dword [ebp - 0x10]
or byte [edx + 0x173], 4
mov eax, dword [ebp - 0x50]
cmp eax, 2
je 0x41dd6b
cmp eax, 1
jne 0x41dd5a
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x159], 0x27
jmp 0x41dd75
cmp eax, 3
jne 0x41dd6b
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x159], 0x22
jmp 0x41dd75
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x159], 0
add ebx, 4
add edi, 8
movsx eax, byte [ebx]
cmp eax, 0x38
je 0x41da58
jmp 0x41d53a
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x41ddec
test byte [ecx + 0x44], 2
je 0x41ddc7
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x41ddba
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
movzx ecx, byte [edx + 0x16c]
push eax
and ecx, 7
push ecx
push 0xffffffffffffffff
push edx
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edx
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 3
lea eax, [ebp - 0x50]
push eax
push 0x52
push dword [edi]
push dword [edi + 4]
call fcn.0040bd60
add esp, 0x14
mov edx, dword [ebp - 0x10]
test eax, eax
jne 0x41de5c
add ebx, 4
add edi, 8
movzx eax, byte [edx + 0x161]
mov byte [edx + 0x162], al
mov ecx, dword [ebp - 0x10]
or byte [ecx + 0x173], 2
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x50]
mov byte [eax + 0x161], dl
movsx eax, byte [ebx]
cmp eax, 0x38
je 0x41da4e
jmp 0x41d53a
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x41debc
test byte [ecx + 0x44], 2
je 0x41de97
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x41de8a
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
movzx ecx, byte [edx + 0x16c]
push eax
and ecx, 7
push ecx
push 0xffffffffffffffff
push edx
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edx
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 3
lea eax, [ebp - 0x50]
push eax
push 6
push dword [edi]
push dword [edi + 4]
call fcn.0040bd60
add esp, 0x14
mov edx, dword [ebp - 0x10]
test eax, eax
jne 0x41df5c
movzx ecx, byte [edx + 0x16b]
mov eax, ecx
shr ecx, 5
and eax, 0xffffffbf
and ecx, 1
shl ecx, 6
or eax, ecx
mov byte [edx + 0x16b], al
mov edx, dword [ebp - 0x10]
or byte [edx + 0x173], 1
mov eax, dword [ebp - 0x50]
cmp eax, 1
jne 0x41df2d
mov eax, dword [ebp - 0x10]
and byte [eax + 0x16b], 0xdf
jmp 0x41df45
mov edx, dword [ebp - 0x10]
cmp eax, 2
jne 0x41df3e
or byte [edx + 0x16b], 0x20
jmp 0x41df45
and byte [edx + 0x16b], 0xdf
add ebx, 4
add edi, 8
movsx eax, byte [ebx]
cmp eax, 0x38
je 0x41da44
jmp 0x41d53a
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x41dfbc
test byte [ecx + 0x44], 2
je 0x41df97
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x41df8a
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
movzx ecx, byte [edx + 0x16c]
push eax
and ecx, 7
push ecx
push 0xffffffffffffffff
push edx
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edx
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 2], 0x4f
jne 0x41d53f
mov eax, dword [ebp - 0x10]
test byte [eax + 0x16b], 4
jne 0x41e0dc
mov ecx, dword [eax + 0x18]
test byte [eax + 0x169], 0x20
jne 0x41e06c
test ecx, ecx
je 0x41e110
test byte [ecx + 0x44], 2
je 0x41e042
mov edx, 0x6d
mov dword [ecx + 0x38], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x3c], edx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x41e030
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x6d
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, 0x6d
push edx
movzx ecx, byte [eax + 0x16c]
push edx
and ecx, 7
push ecx
push 0xffffffffffffffff
push eax
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x41e12f
test byte [ecx + 0x44], 2
je 0x41e0b5
mov dword [ecx + 0x38], 0x6e
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x18]
mov dword [edx + 0x3c], 0x1f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x64]
test eax, eax
je 0x41e0a3
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x6e
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 0x1f
movzx edx, byte [eax + 0x16c]
push 0x6e
and edx, 7
push edx
push 0xffffffffffffffff
push eax
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
add edx, 0xffffffff
mov ecx, dword [edi + 4]
adc ecx, 0xffffffff
add edi, 8
mov dword [eax + 0xb0], edx
mov dword [eax + 0xb4], ecx
xor eax, eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0xb4]
sub ecx, eax
jl 0x41e14b
add ebx, 4
movsx eax, byte [ebx]
jmp 0x41d531
push eax
mov edx, 0x6d
push edx
push edx
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
push 0x1f
push 0x6e
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x18]
test eax, eax
je 0x41e1ba
test byte [eax + 0x44], 2
je 0x41e190
mov edx, 0x6f
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x3c], edx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x41e17e
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], edx
mov eax, 0x6f
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, 0x6f
push eax
movzx ecx, byte [edx + 0x16c]
push eax
and ecx, 7
push ecx
push 0xffffffffffffffff
push edx
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push edx
mov eax, 0x6f
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 2], 0x4e
jne 0x41da3a
mov edx, dword [ebp - 0x10]
add ebx, 4
mov eax, dword [edi]
mov dword [edx + 0xf4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi + 4]
add edi, 8
mov dword [eax + 0x84], ecx
movsx eax, byte [ebx]
jmp 0x41d528
push eax
mov edx, 0x25e
push edx
push edx
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push eax
mov edx, 0x24b
push edx
push edx
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x30], 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], eax
jmp 0x41d813
mov dword [ebp - 0x30], 9
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], eax
jmp 0x41d813
mov dword [ebp - 0x30], 3
lea eax, [ebp - 0x43]
mov dword [ebp - 0x28], eax
jmp 0x41d813
push ecx
push eax
push eax
push 0
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41e2b6
mov eax, 0xffffffff
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
jmp 0x41d6b0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
jmp 0x41d6b0
test byte [eax + 0x16d], 2
je 0x41e2db
mov ebx, dword [eax + 0x44]
sub ebx, dword [eax + 0x3c]
jmp 0x41d67f
xor ebx, ebx
jmp 0x41d67f