Function at 0x41ddb4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41e201
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x41ddf1
mov eax, ebx
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
test eax, eax
jne 0x41ddfd
mov dword [ebp - 0x14], 0xc000000d
jmp 0x41e1bb
mov dword [ebp - 0x14], 0xc0000135
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, ebx
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
mov word [ebp - 0x28], ax
mov eax, ebx
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
inc eax
mov word [ebp - 0x26], ax
mov eax, ebx
call sub.rtl250.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0xc], 0
jne 0x41de3c
cmp dword [ebp + 8], 0
je 0x41e1bb
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0x40
lea edx, [ebp - 0x6c]
xor ecx, ecx
or eax, 0xffffffff
call fcn.0041e5d4
test eax, eax
jne 0x41e1bb
cmp word [ebp - 0x6c], 0x5a4d
jne 0x41e1bb
cmp dword [ebp - 0x30], 0
jle 0x41e1bb
mov eax, dword [ebp - 0x30]
cdq
add eax, dword [ebp + 8]
adc edx, dword [ebp + 0xc]
push edx
push eax
push 0
push 0x108
lea edx, [ebp - 0x174]
xor ecx, ecx
or eax, 0xffffffff
call fcn.0041e5d4
test eax, eax
jne 0x41e1bb
cmp dword [ebp - 0x174], 0x4550
jne 0x41e1bb
xor eax, eax
add eax, 0x78
cmp ax, word [ebp - 0x160]
ja 0x41e1bb
cmp word [ebp - 0x15c], 0x20b
jne 0x41e1bb
mov dword [ebp - 0x14], 0xc000007a
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x28
jb 0x41e1bb
cmp dword [ebp - 0x1c], 0
jbe 0x41e1bb
mov eax, dword [ebp - 0x1c]
xor edx, edx
add eax, dword [ebp + 8]
adc edx, dword [ebp + 0xc]
push edx
push eax
push 0
push 0x28
lea edx, [ebp - 0x19c]
xor ecx, ecx
or eax, 0xffffffff
call fcn.0041e5d4
test eax, eax
jne 0x41e1bb
cmp dword [ebp - 0x188], 0
jbe 0x41e1bb
lea eax, [ebp - 4]
mov edx, dword [0x41dce4]
call sub.rtl250.bpl__System__DynArrayClear_qqrrpvpv
lea eax, [ebp - 8]
mov edx, dword [0x41dd18]
call sub.rtl250.bpl__System__DynArrayClear_qqrrpvpv
lea eax, [ebp - 0xc]
mov edx, dword [0x41dd4c]
call sub.rtl250.bpl__System__DynArrayClear_qqrrpvpv
lea eax, [ebp - 0x10]
mov edx, dword [0x41dd80]
call sub.rtl250.bpl__System__DynArrayClear_qqrrpvpv
xor edx, edx
push ebp
push 0x41e1b4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x188]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41dce4]
call sub.rtl250.bpl__System__DynArraySetLength_qqrv
add esp, 4
mov eax, dword [ebp - 0x180]
xor edx, edx
add eax, dword [ebp + 8]
adc edx, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__DynArrayLength_qqrpxv
add eax, eax
add eax, eax
cdq
push edx
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
or eax, 0xffffffff
call fcn.0041e5d4
test eax, eax
jne 0x41e16e
movzx eax, di
mov edi, eax
mov eax, ebx
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
test eax, eax
jle 0x41e12a
cmp dword [ebp - 0x184], 0
jbe 0x41e12a
mov eax, dword [ebp - 0x184]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x41dd18]
call sub.rtl250.bpl__System__DynArraySetLength_qqrv
add esp, 4
mov eax, dword [ebp - 0x184]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x41dd4c]
call sub.rtl250.bpl__System__DynArraySetLength_qqrv
add esp, 4
mov eax, dword [ebp - 0x17c]
xor edx, edx
add eax, dword [ebp + 8]
adc edx, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [ebp - 8]
call sub.rtl250.bpl__System__DynArrayLength_qqrpxv
add eax, eax
add eax, eax
cdq
push edx
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
or eax, 0xffffffff
call fcn.0041e5d4
test eax, eax
jne 0x41e12a
mov eax, dword [ebp - 0x178]
xor edx, edx
add eax, dword [ebp + 8]
adc edx, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [ebp - 0xc]
call sub.rtl250.bpl__System__DynArrayLength_qqrpxv
add eax, eax
cdq
push edx
push eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
or eax, 0xffffffff
call fcn.0041e5d4
test eax, eax
jne 0x41e12a
movzx eax, word [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
inc eax
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x41dd80]
call sub.rtl250.bpl__System__DynArraySetLength_qqrv
add esp, 4
mov eax, dword [ebp - 0x10]
call sub.rtl250.bpl__System__DynArrayHigh_qqrpxv
mov edx, dword [ebp - 0x10]
mov byte [edx + eax], 0
mov eax, dword [ebp - 8]
call sub.rtl250.bpl__System__DynArrayHigh_qqrpxv
test eax, eax
jl 0x41e12a
inc eax
mov dword [ebp - 0x2c], eax
xor ebx, ebx
mov eax, dword [ebp - 8]
cmp dword [eax + ebx*4], 0
je 0x41e124
mov eax, dword [ebp - 8]
mov eax, dword [eax + ebx*4]
xor edx, edx
add eax, dword [ebp + 8]
adc edx, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
call fcn.0041e5d4
test eax, eax
jne 0x41e124
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0041e81c
cmp eax, dword [ebp - 0x20]
jne 0x41e124
mov eax, dword [ebp - 0xc]
movzx edi, word [eax + ebx*2]
add edi, dword [ebp - 0x18c]
jmp 0x41e12a
inc ebx
dec dword [ebp - 0x2c]
jne 0x41e0d1
mov eax, dword [ebp - 0x18c]
cmp edi, eax
jb 0x41e16e
sub edi, eax
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__DynArrayHigh_qqrpxv
cmp edi, eax
ja 0x41e16e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x41e16e
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
jb 0x41e15a
add eax, dword [ebp - 0x18]
cmp ecx, eax
jb 0x41e16e
mov eax, ecx
xor edx, edx
add eax, dword [ebp + 8]
adc edx, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], edx
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e1bb
lea eax, [ebp - 0x10]
mov edx, dword [0x41dd80]
call sub.rtl250.bpl__System__DynArrayClear_qqrrpvpv
lea eax, [ebp - 0xc]
mov edx, dword [0x41dd4c]
call sub.rtl250.bpl__System__DynArrayClear_qqrrpvpv
lea eax, [ebp - 8]
mov edx, dword [0x41dd18]
call sub.rtl250.bpl__System__DynArrayClear_qqrrpvpv
lea eax, [ebp - 4]
mov edx, dword [0x41dce4]
call sub.rtl250.bpl__System__DynArrayClear_qqrrpvpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e208
lea eax, [ebp - 0x10]
mov edx, dword [0x41dd80]
call sub.rtl250.bpl__System__DynArrayClear_qqrrpvpv
lea eax, [ebp - 0xc]
mov edx, dword [0x41dd4c]
call sub.rtl250.bpl__System__DynArrayClear_qqrrpvpv
lea eax, [ebp - 8]
mov edx, dword [0x41dd18]
call sub.rtl250.bpl__System__DynArrayClear_qqrrpvpv
lea eax, [ebp - 4]
mov edx, dword [0x41dce4]
call sub.rtl250.bpl__System__DynArrayClear_qqrrpvpv
ret