Function at 0x10104d58
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x101d5abc]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
mov edx, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
push edi
test esi, esi
je 0x10104d9a
mov edi, dword [esi + 0x10]
mov dword [esp + 0x14], edi
jmp 0x10104da0
mov edi, ebx
mov dword [esp + 0x14], ebx
test edi, edi
je 0x101050a0
test esi, esi
jne 0x10104db8
mov ecx, edi
call fcn.10105167
jmp 0x101050a3
cmp word [esi + 6], cx
jne 0x10104dda
mov edx, dword [edi + 8]
push ecx
push dword [edi + 0x18]
mov ecx, dword [edi + 4]
push dword [edi + 0xc]
call fcn.10109999
mov edx, dword [esp + 0x18]
mov ebx, eax
xor ecx, ecx
jmp 0x10104ddd
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x101050a0
cmp dword [ebx + 0x54], 0x554e5549
jne 0x101050a0
cmp ebx, dword [ebx + 8]
jne 0x101050a0
cmp ebx, dword [ebx + 0x53c]
jne 0x101050a0
movzx eax, word [esi + 6]
sub eax, ecx
je 0x10104ffa
sub eax, 1
je 0x10104fb0
sub eax, 1
je 0x10104fa5
sub eax, 1
jne 0x101050a0
mov eax, dword [esp + 0x1c]
cmp dword [eax + 8], 1
jne 0x10104f96
cmp dword [edi + 0x10], ecx
je 0x10104f96
test byte [edi + 0x18], 3
je 0x10104f96
mov eax, 0x100
test dword [ebx + 0x14], eax
jne 0x10104ebc
mov edx, dword [ebx + 0x38]
lea edi, [esp + 0x28]
mov ecx, eax
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x18]
push 2
push 0x200
mov ecx, dword [ecx + 0x14]
call fcn.101338dc
push dword [ebx + 0x38]
lea edx, [esp + 0x2c]
mov ecx, ebx
call fcn.10113bc2
xor eax, eax
xor edx, edx
push eax
push eax
push eax
mov ecx, ebx
call fcn.10105326
mov ecx, dword [ebx + 0x2c]
call fcn.10134de0
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x38]
push 0
push 0x100
mov ecx, dword [ecx + 0x14]
push eax
call fcn.10133ae4
mov edi, dword [esp + 0x14]
xor ecx, ecx
mov esi, dword [esp + 0x20]
push ecx
xor edx, edx
mov ecx, ebx
call fcn.10101690
push dword [edi + 0x10]
mov edx, dword [edi + 0xc]
push dword [edi + 0x14]
mov ecx, dword [ebx + 0x2c]
call fcn.10101a4a
mov edx, dword [edi + 0x10]
mov ecx, ebx
call fcn.10108c07
mov ecx, 0x101d6f50
mov edi, eax
call fcn.100fd6e8
push ecx
mov ecx, 0x101d6ac8
push 3
push 1
test al, al
je 0x10104f30
call fcn.10055418
call fcn.100f829c
test al, al
je 0x10104f96
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
push 0x1001d3ac
push dword [ebx + 0xc]
call dword [sym.imp.Print.PrintSupport.Source.dll_IsPsaEnabledForContract]
test eax, eax
jns 0x10104f64
mov edx, 0x1b4
jmp 0x10104f56
call fcn.10055418
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
push 0x1001d3ac
push dword [ebx + 0xc]
call dword [sym.imp.Print.PrintSupport.Source.dll_IsPsaEnabledForContract]
test eax, eax
jns 0x10104f64
mov edx, 0x1ca
mov ecx, dword [ebp + 4]
push eax
push 0x1002a850
call fcn.10052b28
test edi, edi
jne 0x10104f96
cmp byte [esp + 0x13], 0
je 0x10104f96
lea edi, [ebx + 0x2c]
mov edx, dword [edi]
lea eax, [ebx + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
movzx eax, word [edx + 0x44]
movzx ecx, word [edx + 0x46]
mov edx, dword [ebx + 0x10]
add ecx, eax
push ecx
push edi
push dword [ebx + 0xc]
mov ecx, ebx
call fcn.101085a4
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 8]
mov dword [esi + 0x18], eax
jmp 0x10105159
push ebx
call fcn.10109de0
jmp 0x10105159
mov esi, dword [esp + 0x1c]
push 6
pop eax
mov word [esi + 2], ax
mov eax, dword [ebx + 0xc]
mov dword [esi + 4], eax
mov eax, dword [0x101d6f40]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x24]
mov edx, dword [eax + 0x90]
test edx, edx
je 0x10104fee
mov ecx, ebx
call fcn.101097c8
mov dword [esi + 0x10], eax
test eax, eax
je 0x10104fee
or word [esi + 2], 8
jmp 0x10105159
mov dword [esi + 0x10], 0xfa3f
jmp 0x10105159
mov eax, dword [edi + 0x18]
test al, 0x10
mov dword [ebx + 0x5c], eax
mov eax, dword [edi + 0x18]
push 0
pop ecx
setne cl
shr eax, 5
not eax
inc ecx
and eax, 1
mov dword [esp + 0x14], ecx
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax + 4]
add eax, 0x14
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x101050ba
mov esi, eax
dec ecx
cmp dword [esi + 0x10], 0
mov dword [esp + 0x18], ecx
je 0x1010505c
cmp dword [esi + 0x24], 0
je 0x1010505c
xor edx, edx
mov ecx, esi
inc edx
call fcn.100ff46c
xor edx, edx
test eax, eax
setns dl
test eax, eax
jns 0x10105063
mov ecx, dword [esp + 0x18]
add esi, 0x78
test ecx, ecx
jne 0x10105032
mov esi, dword [esp + 0x20]
test edx, edx
je 0x101050ba
or dword [ebx + 0x538], 1
mov ecx, ebx
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x70], eax
mov eax, dword [esi + 8]
or dword [ebx + 0x48], 1
mov dword [ebx + 0x74], eax
mov edx, dword [edi + 0x18]
and edx, 0x7fffffff
call fcn.1010a69f
test eax, eax
jne 0x10105152
push ebx
call fcn.10109de0
or eax, 0xffffffff
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101885f0
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x14]
mov ecx, ebx
call fcn.1011282e
mov dword [esp + 0x14], eax
test eax, eax
je 0x1010509a
xor edx, edx
mov ecx, ebx
call fcn.101072b6
mov edx, dword [esp + 0x14]
push 2
mov dword [edx + 0x14], 0x101055b0
mov ecx, dword [esi + 0xc]
mov dword [ebx + 0x70], ecx
mov ecx, ebx
mov eax, dword [esi + 8]
mov dword [ebx + 0x78], edx
pop edx
mov dword [ebx + 0x74], eax
call fcn.10113659
mov edx, 0x8006
mov ecx, ebx
call fcn.10109c08
test eax, eax
je 0x10105113
mov edx, eax
mov ecx, ebx
call fcn.1010708c
mov esi, dword [ebx + 0x70]
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x18]
mov ecx, esi
push 3
push dword [ebx + 0x74]
call dword [0x101d880c]
call esi
test eax, eax
je 0x1010509a
mov edx, dword [edi + 0x18]
mov ecx, ebx
and edx, 0x7fffffff
call fcn.1010a69f
test eax, eax
je 0x1010509a
mov esi, dword [esp + 0x20]
and dword [esi + 0x18], 0
mov dword [esi + 0x14], ebx
xor eax, eax
inc eax
jmp 0x101050a3