Function at 0x522100
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x48
cmp word [0x6893e4], 0
push ebx
mov ebx, eax
jne 0x52245d
mov al, byte [0x6893f7]
test al, al
je 0x52245d
cmp word [0x69c68c], 0
jne 0x52245d
mov al, byte [0x6e0990]
test al, al
jne 0x52245d
cmp dword [0x7c0d2c], 0xffff0104
jb 0x52245d
fld dword [ebx + 0x290]
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
jne 0x52245d
mov ax, word [ebx + 0x27c]
test al, 4
je 0x52245d
test byte [ebx + 0x28], 2
push ebp
mov ebp, 0x69d960
jne 0x522183
mov ebp, 0x69d980
test ebp, ebp
je 0x52245c
cmp dword [ebp], 0
je 0x52245c
test al, 1
mov dword [esp + 8], 0x40800000
jne 0x5221a9
mov dword [esp + 8], 0x40000000
mov edx, dword [0x6e19d0]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push esi
push edi
push edx
push eax
call dword [ecx + 0x15c]
mov edx, dword [ebp + 4]
mov edx, dword [edx*8 + 0x69e360]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x170]
mov al, byte [0x689409]
test al, al
mov ecx, dword [ebx + 0x134]
mov edi, dword [0x87b7b4]
je 0x522220
cmp ecx, 0xffffffff
je 0x522220
mov eax, ecx
and eax, 0xffff
shl eax, 5
mov eax, dword [eax + edi + 0x14]
mov esi, dword [eax + 0x60]
test esi, esi
jle 0x522220
movsx eax, word [esp + 0x5c]
cdq
idiv esi
mov eax, ecx
call fcn.0043f250
mov esi, eax
cmp word [esi + 0xa], 0
je 0x522251
mov eax, dword [0x71d08c]
mov eax, dword [eax + 0xb8]
cmp eax, 0xffffffff
je 0x522273
and eax, 0xffff
shl eax, 5
mov eax, dword [eax + edi + 0x14]
test eax, eax
je 0x522273
cmp dword [eax + 0x60], 3
jle 0x522273
mov esi, dword [eax + 0x64]
add esi, 0x90
je 0x522273
mov edi, ebp
push 0
call fcn.00518870
mov cx, word [esi + 4]
mov word [0x6d9798], cx
mov dx, word [esi + 6]
add esp, 4
mov word [0x6d979a], dx
mov al, byte [0x6e0990]
test al, al
jne 0x522290
mov esi, dword [0x6e0994]
push 1
mov edi, ebp
call fcn.00518870
add esp, 4
jmp 0x5222a2
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 0
push 1
push eax
call dword [ecx + 0x104]
mov edx, dword [0x71d08c]
mov eax, dword [edx + 0x1c]
push 0
push 2
mov edi, ebp
call fcn.005188b0
mov eax, dword [0x71d08c]
mov eax, dword [eax + 0x1c]
push 0
push 3
call fcn.005188b0
fld qword [0x7c0da0]
mov ecx, dword [ebx + 0x138]
fstp qword [esp + 8]
mov edx, dword [ebx + 0x13c]
add esp, 8
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x40]
push ecx
mov esi, ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0x3f800000
mov dword [esp + 0x34], 0x3f800000
mov dword [esp + 0x38], 0x3f800000
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call fcn.005401b0
mov eax, dword [0x71d09c]
mov edx, dword [eax]
add esp, 0x10
push 3
lea ecx, [esp + 0x1c]
push ecx
push 0xa
push eax
call dword [edx + 0x178]
mov edx, dword [ebx + 0x290]
mov eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x2a8]
mov ecx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], edx
mov edx, dword [ebx + 0x2b0]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x2b4]
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0x2bc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 0x2ac]
mov dword [esp + 0x40], edx
mov edx, eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx + 0x2b8]
mov dword [esp + 0x50], edx
push 3
lea edx, [esp + 0x1c]
mov dword [esp + 0x40], ecx
mov ecx, eax
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], eax
mov eax, dword [0x71d09c]
push 0
mov dword [esp + 0x40], 0x3f800000
mov dword [esp + 0x50], 0x3f800000
mov dword [esp + 0x58], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1b4]
mov eax, dword [ebp]
mov ecx, dword [eax]
push 3
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x100]
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jbe 0x52244d
mov edi, dword [esp + 0x6c]
lea ebx, [edi + 0x14]
lea esp, [esp]
mov eax, dword [ebp]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x104]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
push ebx
push edx
push eax
mov eax, dword [esp + 0x74]
call fcn.0051c480
mov eax, dword [esp + 0x20]
add esp, 0xc
inc esi
cmp esi, eax
jb 0x522420
mov ebp, dword [ebp]
mov ecx, dword [ebp]
push ebp
call dword [ecx + 0x108]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret