Function at 0x45ef90
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x40
xor ecx, ecx
mov word [esp + 2], cx
push ebx
mov eax, dword [esp + 0x54]
push esi
mov dword [esp + 0xc], ecx
push edi
push ebp
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x5c], ecx
jne 0x45efc4
mov eax, dword [edi + 0x44]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x40]
mov edx, dword [esp + 0x64]
push ecx
push edx
mov dword [eax], 0
push edi
call fcn.0045ec40
add esp, 0xc
mov esi, eax
test esi, esi
je 0x45f1ed
mov eax, dword [esi + 0xc]
mov ebp, dword [esi + 8]
mov edx, dword [esp + 0x20]
push eax
mov dword [esp + 0x68], esi
push edx
mov dword [esp + 0x34], eax
push edi
call fcn.004504a0
mov dword [esp + 0x34], eax
add esp, 0xc
test eax, eax
jge 0x45f01b
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
lea ebx, [edx + eax*8 + 0x4c]
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x60]
mov dword [eax], 0
push 0x8000
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov eax, dword [edx + 0x64]
push 0x306
mov dword [esp + 0x38], ecx
push ecx
mov dword [esp + 0x48], eax
push edi
call fcn.004aa140
mov dword [esp + 0x24], eax
add esp, 0x10
test eax, eax
je 0x45f1dd
add eax, 0x204
mov cl, byte [ebx + 6]
mov dword [esp + 0x1c], eax
xor ax, ax
mov al, cl
and ax, 1
cmp ebp, 3
mov word [esp + 0x10], ax
jne 0x45f0a1
mov bl, 1
mov ebp, 0x12
jmp 0x45f0b5
mov eax, ebp
and eax, 0x200
cmp eax, 1
sbb bl, bl
and ebp, 0xff
inc bl
cmp ebp, 0x13
je 0x45f0c1
cmp ebp, 0x14
je 0x45f0c8
jmp 0x45f0d4
test cl, 2
jne 0x45f0d4
jmp 0x45f0cd
test cl, 4
jne 0x45f0d4
mov ebp, 0x12
xor bl, bl
cmp word [esp + 0x10], 0
jne 0x45f141
cmp ebp, 0x12
je 0x45f0e6
cmp ebp, 0x16
jne 0x45f141
mov eax, dword [esp + 0x60]
cmp dword [eax + 0x68], 2
je 0x45f114
mov edx, 0
test edi, edi
je 0x45f0ff
mov edx, dword [edi + 0xac]
push 0x100
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
call fcn.004abf30
jmp 0x45f136
mov eax, 0
test edi, edi
je 0x45f123
mov eax, dword [edi + 0xac]
push 0x100
mov ecx, dword [esi]
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.004abfe0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov bl, 1
mov dword [esi], ecx
lea ecx, [ebp - 0x12]
cmp ecx, 0x22
ja case.0x45f155.23
xor eax, eax
mov al, byte [ecx + 0x45f44c]
jmp dword [eax*4 + 0x45f434]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x60]
push eax
push esi
push 0
push ecx
push edi
call fcn.00464f00
movsx eax, ax
add esp, 0x14
test eax, eax
je 0x45f184
cmp eax, 1
je case.0x45f155.23
jmp 0x45f1ed
test bl, bl
jne 0x45f1bf
cmp word [esp + 0x10], 0
je 0x45f1bf
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x38]
push 0xffffffffffffffff
push edx
push eax
push ecx
push edi
call fcn.0045f470
add esp, 0x1c
test ax, ax
je case.0x45f155.23
jmp 0x45f1ed
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push 0
push ecx
push edi
call fcn.0045eca0
add esp, 0x10
test ax, ax
je case.0x45f155.23
push 0xffff914d
push 2
push edi
call fcn.004bda00
add esp, 0xc
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
push ecx
push 0xffff914e
push 2
push edi
call fcn.004bda00
add esp, 0x10
mov eax, dword [esp + 0x34]
push eax
push edi
call fcn.0045edd0
mov eax, dword [esp + 0x60]
add esp, 8
cmp dword [esp + 0x14], 0
mov dword [eax], 0
je 0x45f236
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
push eax
push ecx
push edi
call fcn.004aa460
add esp, 0xc
mov ax, 0xfffe
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x40
ret
mov edx, dword [esp + 0x20]
push 0x100
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
mov ebx, dword [edx + 0x30]
push eax
push ecx
push edi
call fcn.004ac470
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x28]
mov eax, dword [esp + 0x70]
add esp, 0x10
mov dword [esi], ecx
push edx
push esi
push 1
push eax
push edi
call fcn.00464f00
movsx eax, ax
add esp, 0x14
test eax, eax
je 0x45f290
cmp eax, 1
je case.0x45f155.23
jmp 0x45f1ed
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push ecx
push ebx
push 0xffffffffffffffff
push edx
push eax
push edi
call fcn.0045f470
add esp, 0x1c
test ax, ax
je case.0x45f155.23
jmp 0x45f1ed
mov edx, dword [esp + 0x20]
mov eax, 0
test edi, edi
mov ebx, dword [edx + 0x34]
je 0x45f2d4
mov eax, dword [edi + 0xac]
mov ecx, dword [esi]
push ecx
push eax
call fcn.004ac090
lea ecx, [esp + 0x20]
add esp, 8
push 0
push ecx
push 1
push eax
mov eax, dword [esp + 0x38]
push 0x45f610
mov edx, dword [esp + 0x38]
push 0xffffffffffffffff
push 0
push eax
push ebx
push edx
push edi
call fcn.004e5230
add esp, 0x2c
test eax, eax
je 0x45f319
cmp eax, 1
je case.0x45f155.23
jmp 0x45f1ed
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push ecx
push ebx
push 0xffffffffffffffff
push edx
push eax
push edi
call fcn.0045f470
add esp, 0x1c
test ax, ax
je case.0x45f155.23
jmp 0x45f1ed
mov eax, dword [esp + 0x60]
push ebx
mov ecx, dword [esp + 0x60]
push esi
lea edx, [esp + 0x3c]
push eax
mov word [esp + 0x1e], 1
push ecx
push edx
push edi
call fcn.00471b20
add esp, 0x18
cmp ax, 0xffff
je 0x45f204
test ax, ax
je case.0x45f155.23
jmp 0x45f1ed
mov eax, dword [esp + 0x60]
push esi
mov ecx, dword [esp + 0x60]
push eax
lea edx, [esp + 0x3c]
push ecx
mov word [esp + 0x1e], 1
push edx
push edi
call fcn.004723a0
add esp, 0x14
cmp ax, 0xffff
je 0x45f204
test ax, ax
jne 0x45f1ed
cmp word [esp + 0x12], 0
jne 0x45f404
cmp dword [esp + 0x34], 0
je 0x45f404
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
push edi
call fcn.0045ed30
add esp, 0x10
test ax, ax
je 0x45f404
push 0
push ebp
push edi
call fcn.004b2600
add esp, 0xc
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
push ecx
push edx
push 0xffff9154
push 2
push edi
call fcn.004bda00
add esp, 0x18
jmp 0x45f204
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x14], 0
mov dword [eax], ecx
je 0x45f428
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
push eax
push ecx
push edi
call fcn.004aa460
add esp, 0xc
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x40
ret