Function at 0x100fc480
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10390724]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
push str.is_pe
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x38], xmm0
push dword [edi + 0x10]
push 0
push 1
call fcn.100efe20
mov eax, dword [edi + 8]
push str.machine
push dword [edi + 0x10]
movzx eax, word [eax + 4]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
push str.number_of_sections
push dword [edi + 0x10]
movzx eax, word [eax + 6]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
push str.timestamp
push dword [edi + 0x10]
push 0
push dword [eax + 8]
call fcn.100efe20
mov eax, dword [edi + 8]
add esp, 0x40
push str.pointer_to_symbol_table
push dword [edi + 0x10]
push 0
push dword [eax + 0xc]
call fcn.100efe20
mov eax, dword [edi + 8]
push str.number_of_symbols
push dword [edi + 0x10]
push 0
push dword [eax + 0x10]
call fcn.100efe20
mov eax, dword [edi + 8]
push str.size_of_optional_header
push dword [edi + 0x10]
movzx eax, word [eax + 0x14]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
push str.characteristics
push dword [edi + 0x10]
movzx eax, word [eax + 0x16]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
add esp, 0x40
xor edx, edx
test byte [ebp + 0x14], 2
mov eax, dword [eax + 0x28]
je 0x100fc56a
add eax, dword [ebp + 0xc]
adc edx, dword [ebp + 0x10]
jmp 0x100fc575
push edx
push eax
push edi
call fcn.1011a020
add esp, 0xc
push ebx
push str.entry_point
push dword [edi + 0x10]
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
push str.entry_point_raw
push dword [edi + 0x10]
push 0
push dword [eax + 0x28]
call fcn.100efe20
mov eax, dword [edi + 8]
mov ebx, 0x20b
add esp, 0x20
mov dword [ebp - 0x1c], ebx
cmp word [eax + 0x18], bx
jne 0x100fc5b6
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
jmp 0x100fc5bb
mov ecx, dword [eax + 0x34]
xor eax, eax
push str.image_base
push dword [edi + 0x10]
push eax
push ecx
call fcn.100efe20
mov eax, dword [edi + 8]
add esp, 0x10
cmp word [eax + 0x18], bx
jne 0x100fc5de
mov eax, dword [eax + 0x84]
jmp 0x100fc5e1
mov eax, dword [eax + 0x74]
push str.number_of_rva_and_sizes
push dword [edi + 0x10]
push 0
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
push str.opthdr_magic
push dword [edi + 0x10]
movzx eax, word [eax + 0x18]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
push str.linker_version.major
push dword [edi + 0x10]
movzx eax, byte [eax + 0x1a]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
push str.linker_version.minor
push dword [edi + 0x10]
movzx eax, byte [eax + 0x1b]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
add esp, 0x40
push str.size_of_code
push dword [edi + 0x10]
push 0
push dword [eax + 0x1c]
call fcn.100efe20
mov eax, dword [edi + 8]
push str.size_of_initialized_data
push dword [edi + 0x10]
push 0
push dword [eax + 0x20]
call fcn.100efe20
mov eax, dword [edi + 8]
push str.size_of_uninitialized_data
push dword [edi + 0x10]
push 0
push dword [eax + 0x24]
call fcn.100efe20
mov eax, dword [edi + 8]
push str.base_of_code
push dword [edi + 0x10]
push 0
push dword [eax + 0x2c]
call fcn.100efe20
mov eax, dword [edi + 8]
add esp, 0x40
cmp word [eax + 0x18], bx
je 0x100fc6b1
push str.base_of_data
push dword [edi + 0x10]
push 0
push dword [eax + 0x30]
call fcn.100efe20
mov eax, dword [edi + 8]
add esp, 0x10
push str.section_alignment
push dword [edi + 0x10]
push 0
push dword [eax + 0x38]
call fcn.100efe20
mov eax, dword [edi + 8]
push str.file_alignment
push dword [edi + 0x10]
push 0
push dword [eax + 0x3c]
call fcn.100efe20
mov eax, dword [edi + 8]
push str.os_version.major
push dword [edi + 0x10]
movzx eax, word [eax + 0x40]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
push str.os_version.minor
push dword [edi + 0x10]
movzx eax, word [eax + 0x42]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
add esp, 0x40
movzx eax, word [eax + 0x44]
push str.image_version.major
push dword [edi + 0x10]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
push str.image_version.minor
push dword [edi + 0x10]
movzx eax, word [eax + 0x46]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
push str.subsystem_version.major
push dword [edi + 0x10]
movzx eax, word [eax + 0x48]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
push str.subsystem_version.minor
push dword [edi + 0x10]
movzx eax, word [eax + 0x4a]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
add esp, 0x40
push str.win32_version_value
push dword [edi + 0x10]
push 0
push dword [eax + 0x4c]
call fcn.100efe20
mov eax, dword [edi + 8]
push str.size_of_image
push dword [edi + 0x10]
push 0
push dword [eax + 0x50]
call fcn.100efe20
mov eax, dword [edi + 8]
push str.size_of_headers
push dword [edi + 0x10]
push 0
push dword [eax + 0x54]
call fcn.100efe20
push 0x102799a8
push dword [edi + 0x10]
mov eax, dword [edi + 8]
push 0
push dword [eax + 0x58]
call fcn.100efe20
mov eax, dword [edi + 8]
add esp, 0x40
movzx eax, word [eax + 0x5c]
push str.subsystem
push dword [edi + 0x10]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
push str.dll_characteristics
push dword [edi + 0x10]
movzx eax, word [eax + 0x5e]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [edi + 8]
add esp, 0x20
mov ecx, dword [eax + 0x60]
cmp word [eax + 0x18], bx
jne 0x100fc801
mov eax, dword [eax + 0x64]
jmp 0x100fc803
xor eax, eax
push str.size_of_stack_reserve
push dword [edi + 0x10]
push eax
push ecx
call fcn.100efe20
mov eax, dword [edi + 8]
add esp, 0x10
cmp word [eax + 0x18], bx
jne 0x100fc826
mov ecx, dword [eax + 0x68]
mov eax, dword [eax + 0x6c]
jmp 0x100fc82b
mov ecx, dword [eax + 0x64]
xor eax, eax
push str.size_of_stack_commit
push dword [edi + 0x10]
push eax
push ecx
call fcn.100efe20
mov eax, dword [edi + 8]
add esp, 0x10
cmp word [eax + 0x18], bx
jne 0x100fc84e
mov ecx, dword [eax + 0x70]
mov eax, dword [eax + 0x74]
jmp 0x100fc853
mov ecx, dword [eax + 0x68]
xor eax, eax
push str.size_of_heap_reserve
push dword [edi + 0x10]
push eax
push ecx
call fcn.100efe20
mov eax, dword [edi + 8]
add esp, 0x10
cmp word [eax + 0x18], bx
jne 0x100fc876
mov ecx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
jmp 0x100fc87b
mov ecx, dword [eax + 0x6c]
xor eax, eax
push str.size_of_heap_commit
push dword [edi + 0x10]
push eax
push ecx
call fcn.100efe20
mov eax, dword [edi + 8]
add esp, 0x10
cmp word [eax + 0x18], bx
jne 0x100fc89e
mov eax, dword [eax + 0x80]
jmp 0x100fc8a1
mov eax, dword [eax + 0x70]
push str.loader_flags
push dword [edi + 0x10]
push 0
push eax
call fcn.100efe20
mov edx, dword [edi + 8]
add esp, 0x10
mov ebx, 0x78
mov eax, 0x88
movzx ecx, word [edx + 0x18]
cmp cx, word [ebp - 0x1c]
cmovne eax, ebx
lea ebx, [eax + edx]
mov eax, 0x20b
cmp cx, ax
jne 0x100fc8e1
mov ecx, dword [edx + 0x84]
jmp 0x100fc8e4
mov ecx, dword [edx + 0x74]
mov eax, 0x10
cmp ecx, eax
cmovl eax, ecx
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
test eax, eax
jle 0x100fc950
nop word [eax + eax]
mov eax, dword [edi + 4]
cmp eax, 8
jb 0x100fc950
mov edx, dword [edi]
cmp ebx, edx
jb 0x100fc950
add eax, 0xfffffff8
add eax, edx
cmp ebx, eax
ja 0x100fc950
push ecx
push str.data_directories__i_.virtual_address
push dword [edi + 0x10]
push 0
push dword [ebx]
call fcn.100efe20
push dword [ebp - 0x18]
push str.data_directories__i_.size
push dword [edi + 0x10]
push 0
push dword [ebx + 4]
call fcn.100efe20
mov ecx, dword [ebp - 0x18]
add esp, 0x28
inc ecx
add ebx, 8
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebp - 0x1c]
jl 0x100fc900
push 2
push edi
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
call fcn.10119e20
add esp, 8
test eax, eax
je 0x100fca1f
mov eax, dword [eax]
test eax, eax
je 0x100fca1f
push 0
push eax
push edi
call fcn.1011a020
add esp, 0xc
mov ecx, eax
mov dword [ebp - 0x20], ecx
test edx, edx
jl 0x100fca1f
jg 0x100fc9a1
test ecx, ecx
jb 0x100fca1f
mov eax, dword [edi]
lea ebx, [ecx + eax]
mov ecx, dword [edi + 4]
cmp ecx, 0x10
jb 0x100fca1f
cmp ebx, eax
jb 0x100fca1f
add eax, 0xfffffff0
add eax, ecx
cmp ebx, eax
ja 0x100fca1f
push str.resource_timestamp
push dword [edi + 0x10]
push 0
push dword [ebx + 4]
call fcn.100efe20
movzx eax, word [ebx + 8]
push str.resource_version.major
push dword [edi + 0x10]
cdq
push edx
push eax
call fcn.100efe20
movzx eax, word [ebx + 0xa]
push str.resource_version.minor
push dword [edi + 0x10]
cdq
push edx
push eax
call fcn.100efe20
push edi
push 0x100fbcd0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [edi]
add eax, dword [ebp - 0x20]
push 0
push eax
push ebx
push edi
call fcn.100f7530
add esp, 0x60
push str.number_of_resources
push dword [edi + 0x10]
push 0
push dword [edi + 0x18]
call fcn.100efe20
mov ecx, dword [edi + 8]
add esp, 0x10
movzx eax, word [ecx + 0x14]
lea ebx, [ecx + 0x18]
add ebx, eax
movzx eax, word [ecx + 6]
cmp eax, 0x60
jae 0x100fca64
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x100fca6b
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x38]
jmp 0x100fcc16
mov dword [ebp - 0x1c], 0x60
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
nop word [eax + eax]
mov eax, dword [edi + 4]
cmp eax, 0x28
jb 0x100fcc13
mov edx, dword [ebp - 0x20]
cmp ebx, dword [edi]
jb 0x100fcc13
mov ecx, dword [edi]
add ecx, 0xffffffd8
add eax, ecx
mov ecx, dword [ebp - 0x24]
cmp ebx, eax
ja 0x100fcc13
push 8
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.10259620
lea eax, [ebp - 0x10]
mov byte [ebp - 8], 0
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100fcad2
push dword [ebp - 0x14]
sub eax, edx
push str.sections__i_.name
push dword [edi + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100efe90
push dword [ebp - 0x14]
push str.sections__i_.characteristics
push dword [edi + 0x10]
push 0
push dword [ebx + 0x24]
call fcn.100efe20
push dword [ebp - 0x14]
push str.sections__i_.raw_data_size
push dword [edi + 0x10]
push 0
push dword [ebx + 0x10]
call fcn.100efe20
push dword [ebp - 0x14]
push str.sections__i_.raw_data_offset
push dword [edi + 0x10]
push 0
push dword [ebx + 0x14]
call fcn.100efe20
add esp, 0x50
push dword [ebp - 0x14]
push str.sections__i_.virtual_address
push dword [edi + 0x10]
push 0
push dword [ebx + 0xc]
call fcn.100efe20
push dword [ebp - 0x14]
push str.sections__i_.virtual_size
push dword [edi + 0x10]
push 0
push dword [ebx + 8]
call fcn.100efe20
push dword [ebp - 0x14]
push str.sections__i_.pointer_to_relocations
push dword [edi + 0x10]
push 0
push dword [ebx + 0x18]
call fcn.100efe20
push dword [ebp - 0x14]
push str.sections__i_.pointer_to_line_numbers
push dword [edi + 0x10]
push 0
push dword [ebx + 0x1c]
call fcn.100efe20
movzx eax, word [ebx + 0x20]
add esp, 0x50
cdq
push dword [ebp - 0x14]
push str.sections__i_.number_of_relocations
push dword [edi + 0x10]
push edx
push eax
call fcn.100efe20
push dword [ebp - 0x14]
movzx eax, word [ebx + 0x22]
push str.sections__i_.number_of_line_numbers
push dword [edi + 0x10]
cdq
push edx
push eax
call fcn.100efe20
mov eax, dword [ebx + 0x14]
add esp, 0x28
add eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov eax, ecx
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, edx
adc eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], eax
jb 0x100fcc00
ja 0x100fcbec
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jbe 0x100fcc00
mov ecx, dword [ebx + 0x14]
xor edx, edx
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x14]
add ebx, 0x28
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x1c]
jl 0x100fca90
mov eax, dword [ebp - 0x28]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x24], ecx
adc edx, eax
mov eax, ecx
or eax, edx
mov dword [ebp - 0x20], edx
pop ebx
je 0x100fcc54
xor eax, eax
cmp eax, edx
jb 0x100fcc54
ja 0x100fcc35
cmp dword [edi + 4], ecx
jbe 0x100fcc54
push str.overlay.offset
push dword [edi + 0x10]
push edx
push ecx
call fcn.100efe20
mov ecx, dword [edi + 4]
add esp, 0x10
xor edx, edx
sub ecx, dword [ebp - 0x24]
sbb edx, dword [ebp - 0x20]
jmp 0x100fcc76
push str.overlay.offset
push dword [edi + 0x10]
push 0
push 0
call fcn.100efe20
xorps xmm0, xmm0
add esp, 0x10
movlpd qword [ebp - 0x30], xmm0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edi + 0x10]
push str.overlay.size
push eax
push edx
push ecx
call fcn.100efe20
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.10249257
mov esp, ebp
pop ebp
ret