Function at 0x100ad4b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b67ca
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x10247db0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.100aadc0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x40], 2
jb 0x100ad536
push 0
lea edx, [ebp - 0x14]
push edx
push 2
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 0x14]
push edx
push 2
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx edx, word [ebp - 0x2c]
mov dword [ebp - 0x3c], edx
jmp 0x100ad54c
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x38], 0
jmp 0x100ad55e
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x3c]
jge 0x100ad983
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x14]
push edx
push 4
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0xe
ja case.0x100ad5a0.10
mov eax, dword [ebp - 0x44]
jmp dword [eax*4 + 0x100adc70]
push 0x120
call fcn.10159ea0
add esp, 4
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x48], 0
je 0x100ad5d1
mov ecx, dword [ebp - 0x48]
call fcn.100acbd0
mov dword [ebp - 0x4c], eax
jmp 0x100ad5d8
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x10], edx
jmp case.0x100ad5a0.10
push 0x168
call fcn.10159ea0
add esp, 4
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x50], 0
je 0x100ad620
mov ecx, dword [ebp - 0x50]
call fcn.100b1f60
mov dword [ebp - 0x54], eax
jmp 0x100ad627
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x10], ecx
jmp case.0x100ad5a0.10
push 0x1c8
call fcn.10159ea0
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x58], 0
je 0x100ad66f
mov ecx, dword [ebp - 0x58]
call fcn.100b6d70
mov dword [ebp - 0x5c], eax
jmp 0x100ad676
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xac], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x10], eax
jmp case.0x100ad5a0.10
push 0x168
call fcn.10159ea0
add esp, 4
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x60], 0
je 0x100ad6be
mov ecx, dword [ebp - 0x60]
call fcn.100afa20
mov dword [ebp - 0x64], eax
jmp 0x100ad6c5
mov dword [ebp - 0x64], 0
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x10], edx
jmp case.0x100ad5a0.10
push 0x130
call fcn.10159ea0
add esp, 4
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 4
cmp dword [ebp - 0x68], 0
je 0x100ad70d
mov ecx, dword [ebp - 0x68]
call fcn.100b6900
mov dword [ebp - 0x6c], eax
jmp 0x100ad714
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x10], ecx
jmp case.0x100ad5a0.10
push 0x158
call fcn.10159ea0
add esp, 4
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 5
cmp dword [ebp - 0x70], 0
je 0x100ad75c
mov ecx, dword [ebp - 0x70]
call fcn.100b5a40
mov dword [ebp - 0x74], eax
jmp 0x100ad763
mov dword [ebp - 0x74], 0
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0xb8], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x10], eax
jmp case.0x100ad5a0.10
push 0x130
call fcn.10159ea0
add esp, 4
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 6
cmp dword [ebp - 0x78], 0
je 0x100ad7ab
mov ecx, dword [ebp - 0x78]
call fcn.100b6510
mov dword [ebp - 0x7c], eax
jmp 0x100ad7b2
mov dword [ebp - 0x7c], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x10], edx
jmp case.0x100ad5a0.10
push 0x138
call fcn.10159ea0
add esp, 4
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 7
cmp dword [ebp - 0x80], 0
je 0x100ad7fd
mov ecx, dword [ebp - 0x80]
call fcn.100b9360
mov dword [ebp - 0x84], eax
jmp 0x100ad807
mov dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0x10], ecx
jmp case.0x100ad5a0.10
push pe_nt_image_headers32
call fcn.10159ea0
add esp, 4
mov dword [ebp - 0x88], eax
mov dword [ebp - 4], 8
cmp dword [ebp - 0x88], 0
je 0x100ad85e
mov ecx, dword [ebp - 0x88]
call fcn.100b10e0
mov dword [ebp - 0x8c], eax
jmp 0x100ad868
mov dword [ebp - 0x8c], 0
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0xc4], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x10], eax
jmp case.0x100ad5a0.10
push 0x128
call fcn.10159ea0
add esp, 4
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 9
cmp dword [ebp - 0x90], 0
je 0x100ad8bf
mov ecx, dword [ebp - 0x90]
call fcn.100ac900
mov dword [ebp - 0x94], eax
jmp 0x100ad8c9
mov dword [ebp - 0x94], 0
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0x10], edx
jmp case.0x100ad5a0.10
push pe_nt_image_headers32
call fcn.10159ea0
add esp, 4
mov dword [ebp - 0x98], eax
mov dword [ebp - 4], 0xa
cmp dword [ebp - 0x98], 0
je 0x100ad91a
mov ecx, dword [ebp - 0x98]
call fcn.100b49c0
mov dword [ebp - 0x40], eax
jmp 0x100ad921
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x100ad95c
push 0xfe
push 0x10205148
push str.Unknown_type_UserInterface___
push 0x102051d4
call fcn.100a4d50
add esp, 0x10
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x58]
call eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
call edx
jmp 0x100ad555
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x24], 0
jle 0x100ada1f
mov byte [ebp - 0x1d], 0
lea ecx, [ebp - 0x25]
call fcn.100432b0
push eax
lea eax, [ebp - 0x1d]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
push ecx
lea ecx, [ebp - 0xdc]
call fcn.1005b5a0
mov dword [ebp - 4], 0xb
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 0
lea ecx, [ebp - 0xdc]
call fcn.10056950
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0xdc]
call fcn.10056950
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x48
call fcn.10045050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.10056a30
jmp 0x100ada2f
push 0x101f0feb
mov ecx, dword [ebp - 0x18]
add ecx, 0x48
call fcn.10045050
push 0
lea edx, [ebp - 0x14]
push edx
push 0x10
mov eax, dword [ebp - 0x18]
add eax, 0xf4
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 0x14]
push edx
push 0x10
mov eax, dword [ebp - 0x18]
add eax, 0x104
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 0x14]
push edx
push 4
mov eax, dword [ebp - 0x18]
add eax, 0xec
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 0x14]
push edx
push 4
mov eax, dword [ebp - 0x18]
add eax, 0xf0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 0x14]
push edx
push 4
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x30], 0
jle 0x100adb2e
mov byte [ebp - 0x1e], 0
lea ecx, [ebp - 0x26]
call fcn.100432b0
push eax
lea edx, [ebp - 0x1e]
push edx
mov eax, dword [ebp - 0x30]
add eax, 1
push eax
lea ecx, [ebp - 0xec]
call fcn.1005b5a0
mov dword [ebp - 4], 0xc
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 0
lea ecx, [ebp - 0xec]
call fcn.10056950
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0xec]
call fcn.10056950
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x64
call fcn.10045050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.10056a30
mov dword [ebp - 0x1c], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 4
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x1c], 0
jle 0x100adbc9
mov byte [ebp - 0x1f], 0
lea ecx, [ebp - 0x27]
call fcn.100432b0
push eax
lea ecx, [ebp - 0x1f]
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
lea ecx, [ebp - 0xfc]
call fcn.1005b5a0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
lea ecx, [ebp - 0xfc]
call fcn.10056950
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x118], 0
je 0x100adbbe
push 0x124
push 0x102051e8
push 0x102051c8
push 0x1020526c
call fcn.100a4d50
add esp, 0x10
lea ecx, [ebp - 0xfc]
call fcn.10056a30
push 0
lea ecx, [ebp - 0x14]
push ecx
push 4
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x1c], 0
jle 0x100adc5d
mov byte [ebp - 0x20], 0
lea ecx, [ebp - 0x31]
call fcn.100432b0
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
lea ecx, [ebp - 0x10c]
call fcn.1005b5a0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
lea ecx, [ebp - 0x10c]
call fcn.10056950
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x11c], 0
je 0x100adc52
push 0x12d
push 0x10205280
push 0x10205260
push 0x1020524c
call fcn.100a4d50
add esp, 0x10
lea ecx, [ebp - 0x10c]
call fcn.10056a30
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4