Function at 0x51d840
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x48
cmp word [0x68330c], 0
push ebx
mov ebx, eax
jne 0x51db9d
mov al, byte [0x68331f]
test al, al
je 0x51db9d
cmp word [0x695f2c], 0
jne 0x51db9d
mov al, byte [0x6da108]
test al, al
jne 0x51db9d
cmp dword [0x7b2a0c], 0xffff0104
jb 0x51db9d
fld dword [ebx + 0x290]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 0x41
jne 0x51db9d
mov ax, word [ebx + 0x27c]
test al, 4
je 0x51db9d
test byte [ebx + 0x28], 2
push ebp
mov ebp, 0x697200
jne 0x51d8c3
mov ebp, 0x697220
test ebp, ebp
je 0x51db9c
cmp dword [ebp], 0
je 0x51db9c
test al, 1
mov dword [esp + 8], 0x40800000
jne 0x51d8e9
mov dword [esp + 8], 0x40000000
mov edx, dword [0x6db148]
mov eax, dword [0x70eda0]
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 + 0x697c00]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x170]
mov al, byte [0x683331]
test al, al
mov ecx, dword [ebx + 0x134]
mov edi, dword [0x86cff4]
je 0x51d960
cmp ecx, 0xffffffff
je 0x51d960
mov eax, ecx
and eax, 0xffff
shl eax, 5
mov eax, dword [eax + edi + 0x14]
mov esi, dword [eax + 0x60]
test esi, esi
jle 0x51d960
movsx eax, word [esp + 0x5c]
cdq
idiv esi
mov eax, ecx
call fcn.0043f260
mov esi, eax
cmp word [esi + 0xa], 0
je 0x51d991
mov eax, dword [0x70ed94]
mov eax, dword [eax + 0xb8]
cmp eax, 0xffffffff
je 0x51d9b3
and eax, 0xffff
shl eax, 5
mov eax, dword [eax + edi + 0x14]
test eax, eax
je 0x51d9b3
cmp dword [eax + 0x60], 3
jle 0x51d9b3
mov esi, dword [eax + 0x64]
add esi, 0x90
je 0x51d9b3
mov edi, ebp
push 0
call fcn.005141d0
mov cx, word [esi + 4]
mov word [0x6d2f10], cx
mov dx, word [esi + 6]
add esp, 4
mov word [0x6d2f12], dx
mov al, byte [0x6da108]
test al, al
jne 0x51d9d0
mov esi, dword [0x6da10c]
push 1
mov edi, ebp
call fcn.005141d0
add esp, 4
jmp 0x51d9e2
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 1
push eax
call dword [ecx + 0x104]
mov edx, dword [0x70ed94]
mov eax, dword [edx + 0x1c]
push 0
push 2
mov edi, ebp
call fcn.00514210
mov eax, dword [0x70ed94]
mov eax, dword [eax + 0x1c]
push 0
push 3
call fcn.00514210
fld qword [0x7b2a80]
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.0053b8e0
mov eax, dword [0x70eda0]
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 [0x70eda0]
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 0x51db8d
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.00517de0
mov eax, dword [esp + 0x20]
add esp, 0xc
inc esi
cmp esi, eax
jb 0x51db60
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